Search found 4098 matches

by TMC
Sat Feb 29, 2020 11:06 pm
Forum: General Discussion
Topic: National TMC Appreciation Day
Replies: 20
Views: 2440

Yep, you all missed it.
by TMC
Sat Feb 29, 2020 1:02 pm
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7580

But I actually prefer to run the REPL in a separate process in a terminal emulator so that we get a separate window with text editing, scrollback, readable fonts, etc. all for free. There's no technical problem using a parser generator that produces C and linking it in; C and FB code modules can be ...
by TMC
Sat Feb 29, 2020 2:57 am
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7580

Neat. It's not far off being able to serialise the AST to a .hsz files. I'm going to working on adding the ability for ohrrpgce-game to call out to a external REPL process.
by TMC
Sat Feb 29, 2020 2:21 am
Forum: Q&A Discussion
Topic: [Solved] Getting OHRRPGCE to run on linux, help needed :-(
Replies: 18
Views: 2604

If you were wondering, I've finally finished the Python 3 port based on your patch, and the scons EUC fixes. Was both time consuming and got buried in my git stash. All .py files can now be run with both Python 2 and Python 3. Thanks again.
by TMC
Thu Feb 27, 2020 10:05 pm
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7580

Hmm, you want to read an .hs file? So that the REPL can call existing scripts? BTW, .hs files do not currently contain lists of declared global variables, but that's something I want to add. A Python library to read .hs (and .rpg) files already exists: https://bitbucket.org/rbv/nohrio/src/master/noh...
by TMC
Thu Feb 27, 2020 1:22 pm
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7580

The interpreter is looking not that far off functional! I'd like to take it further even if you're stopping here. Makes it simpler but also generates a shift/reduce conflict because + is declared left associative, so I put them back. To be honest, I've never studied or used LR parsers, though I've a...
by TMC
Thu Feb 27, 2020 3:16 am
Forum: Game Discussion
Topic: Ridiculous Games Contest 2020 - The 1998 one
Replies: 71
Views: 9752

Yes, mute too. - Wrapping and non-cropping ("Use default tile") maps were added November 9 1999 - Map names added November 9 1999 - Tileset default passability added Feb 27 2001 :zombie: :gonk: The wallmap editor is one of the biggest challenges in using the 1998 CUSTOM.EXE. (Also, mouse d...
by TMC
Wed Feb 26, 2020 11:53 pm
Forum: Game Discussion
Topic: Axe Cop
Replies: 217
Views: 42090

Really snazzy.
Does the phone report the correct local time when you timetravel??
by TMC
Wed Feb 26, 2020 11:22 pm
Forum: Game Discussion
Topic: Ridiculous Games Contest 2020 - The 1998 one
Replies: 71
Views: 9752

Because DOS. I would guess that DOSBox's DOS implementation is to blame, crashing instead of gracefully handling an invalid filename. custom-1998-10-04-4map.zip contains a copy of CUSTOM.EXE which is 100kB too short, it doesn't run. GAME.EXE and other files seem to be fine. custom-1998-07-27.zip has...
by TMC
Tue Feb 25, 2020 10:30 am
Forum: General Discussion
Topic: National TMC Appreciation Day
Replies: 20
Views: 2440

Had it not been for the tyranny of the pre-screened ballot options, my vote was for Septoctobvember the ?th; the (almost) glorious day that Fufluns was (formerly) destined for release (11th time lucky).
by TMC
Tue Feb 25, 2020 4:17 am
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7580

Was it helpful to handle the whitespace in the parser rather than using regexes in the lexer? (We try to preserve whitespace and capitalisation in identifiers when printing error messages). It's not *actually* necessary to support whitespace in a middle of an operator token, with the exception of $ ...
by TMC
Mon Feb 24, 2020 3:11 pm
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7580

That's the start of something very cool! And the code is very simple. Amused to see you have a unary minus operator, which HS sadly doesn't have. (I'd really like to allow - instead of -- too, but any attempt to allow that would probably make a mess of the syntax... syntax conditional on a directive...
by TMC
Mon Feb 24, 2020 2:40 pm
Forum: Game Discussion
Topic: Ridiculous Games Contest 2020 - The 1998 one
Replies: 71
Views: 9752

I got the dos ohr sort of working, but midi2bam crashes spectacularly. So, I'm going to use the normal ohr instead, because its not ohr without some low quality FF6 midis. MIDI2BAM crashed because you tried to enter a filename longer than 8 characters! It works fine for me as long as I don't do tha...
by TMC
Sun Feb 23, 2020 4:24 am
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7580

Yeah, my parser is a mess (at least, I assume it is, I don't have the patience to inspect the code myself) and would be a pain to extend as features continue to be added to HS, such as array subscripting, and poetntial changes to how commas and brackets are lexed. PLY looks pretty nice! I assume tha...
by TMC
Sat Feb 22, 2020 11:38 pm
Forum: General Discussion
Topic: Indent tool for HSpeak
Replies: 71
Views: 7580

Interesting, does it read globals to find t_COMMENT, etc?

Source code for my tool is at http://tmc.castleparadox.com/format-hs.py and you can try it out here.