Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My Esoteric Interpreter called oh
#4
Lightbulb 
I liked this program. I had wanted something like this about ten years ago on Linux, with some ability to do graphics and sound, so I could have avoided Lua. This was before I started getting involved with regular expressions and associate arrays but anyway...

Hmm. Line 41 could be changed into a conditional like so:

$IF WIN THEN
NL$ = Chr$(13) + Chr$(10) 'for NotePad++
$ELSE
NL$ = Chr$(10)
$END IF

Also there's only one "LINE INPUT #" line. EDIT: this program does quite a bit processing newlines. For a file created on Windows might have to use "StrReplace$()" to turn it into single-character Linux newline, and vice-versa for operating system, right after reading a line from the input file. If newline doesn't exist there's nothing else that needs to be done.

I made a few modifications so it's a bit more tolerable for me LOL. For example when there seems to be an endlessloop and the user presses [ESC], I changed it so it returns back to main screen with menu on top. I believe also added an extra main menu option for "Run", so that one has the original function and the other bypasses the question of checking the script for syntax. Sorry but this was at least a month ago and the edits are on a different computer, and tested it only on Windows so far.

I wish I could also say I rolled my own programs for this interpreter. Good work!
Reply


Messages In This Thread
My Esoteric Interpreter called oh - by bplus - 04-25-2022, 01:05 AM
RE: My Esoteric Interpreter called oh - by bplus - 04-25-2022, 02:13 AM
RE: My Esoteric Interpreter called oh - by bplus - 04-25-2022, 11:01 PM
RE: My Esoteric Interpreter called oh - by mnrvovrfc - 08-01-2022, 08:44 AM
RE: My Esoteric Interpreter called oh - by bplus - 08-01-2022, 02:46 PM
RE: My Esoteric Interpreter called oh - by aurel - 08-01-2022, 07:31 PM
RE: My Esoteric Interpreter called oh - by bplus - 08-01-2022, 09:28 PM
RE: My Esoteric Interpreter called oh - by aurel - 08-02-2022, 12:36 PM
RE: My Esoteric Interpreter called oh - by bplus - 08-02-2022, 03:53 PM
RE: My Esoteric Interpreter called oh - by aurel - 08-02-2022, 07:21 PM
RE: My Esoteric Interpreter called oh - by vince - 08-22-2022, 11:44 PM
RE: My Esoteric Interpreter called oh - by bplus - 08-23-2022, 12:19 AM



Users browsing this thread: 5 Guest(s)