Do other programming languages leave you confused with complex commands and syntax? Well. do I have the language for you! h uses a single command for everything: h. And yes, this is an actual language.

Anyway, I wrote an interpreter for h that will let you run h on any z80 calc. here it is:

Code:
:
ClrHome
Repeat 0
   If getKey
   Disp "h
   End
Turns out I was missing a command from the last h interpreter -
Code:
'

That's been changed now, and a completely reworked version of the H interpreter has been submitted to the archives.
Here's a fancier REPL (read-evaluate-print-loop) program:


Code:
ClrHome
Disp "THE h PROGRAMMING LANGUAGE"
Disp "REPL Ver. 1.0"
While 1
Input ">>> ",Str8
If Str8="H" or Str8="h":Then
Disp "h"
Else:If Str8="'":Then
Disp "'"
Else
Disp "?SYNTAX ERROR"
End
End
End
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement