Recent

Author Topic: Programmable RPN Calculator  (Read 653 times)

NickyTi

  • New Member
  • *
  • Posts: 12
Programmable RPN Calculator
« on: June 28, 2025, 11:26:42 pm »
This is Programmable Calculator based on FORTH language ideas.
It's tested with fpc 3.2.2 and Lazarus 3.0, 3.2, 3.6, 4.0 for both 32- and 64-bit on Windows 8.1, 10, 11.
I would be glad if someone has the time and desire to compile and test it on other platforms.

My goals were to create a compact program using only the standard Lazarus components and learn how to use:
  • UTF8 strings;
  • stacks and queues;
  • recursive algorithms;
  • simple hash;
  • messages for data exchange between units;
  • context menus;
  • events log;
  • hints;
  • themes and fonts;
  • secrets of TSynEdit;
  • TPageControl in Windows so that tabs have CLOSE and ADD buttons;
  • i18n for multilingual localization;
  • associations of *.forth files with the program.
To get a quick start from the context menu open 0.forth from the sample_files folder.
For Windows users: If you want to win in the StarTrek game, open star_trek.forth from the super_star_trek_en or super_star_trek_ru folders.

I am grateful to the ideas, tips and tricks of this forum and the Lazarus team for helping me achieve these goals.

Thanks

440bx

  • Hero Member
  • *****
  • Posts: 6528
Re: Programmable RPN Calculator
« Reply #1 on: June 28, 2025, 11:54:14 pm »
Hello NickyTi,

I had a very quick look at your program but, can say it looks quite interesting.

You may be interested in knowing that there is a typo in the opening page.  In the line that reads "Leo Brodie "Starting FORT." , it should be "FORTH" not "FORT."

By the way, compiled and ran your program on Win 7 SP1, 64 bit.  It seems your program is fully compatible with that version of Windows.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

NickyTi

  • New Member
  • *
  • Posts: 12
Re: Programmable RPN Calculator
« Reply #2 on: June 29, 2025, 07:39:47 pm »
Hello 440bx,

Thank you for taking your time and giving me a specific and quick response.
I've fixed the inaccuracy you mentioned.

440bx

  • Hero Member
  • *****
  • Posts: 6528
Re: Programmable RPN Calculator
« Reply #3 on: June 29, 2025, 09:35:24 pm »
Thank you for taking your time and giving me a specific and quick response.
You're welcome.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018