It was a cold and rainy day today so I decided to rework the parser of my text adventure game skeleton.

So now you can enter a simple sentence as can be seen in the screenshot which is better than the two-word approach I initially implemented (still not Infocom like but then that's not what I am after).

What happens in the background is that the user input is split into sub-strings which are then checked against a list of strings (e.g. object names, verbs), leaving their corresponding list index number on the stack. These numbers are then used within the actual game logic.

Oh, and I've added some colors - now the thing is beginning to look like a game ...

#textadventure
#game
#parser
#retrocoding
#durexforth
#forth

Had a day off today and used the free time to implement "take", ""drop" and "inv" (inventory) for that #text #adventure #game skeleton I'm occasionally tinkering with.

On the #Commodore64 I use #durexforth, but the same code also works on the #MyNorMy4th and with #gforth and I plan to get it to work on the #Minstrel4d as well.

I still use just a two-word #parser at the moment but I'm already looking into ways of expanding that (will not be as great as Infocom but better than it is now).

#forth
#retrocoding

루비 해시 패턴 파서 업데이트: 코드에 미치는 영향과 내부 구조 개선

루비 파서의 해시 패턴 노드 구조를 NODE_HSHPTN에서 명확한 의미를 가진 HashPatternNode로 리팩토링하여 유지보수성과 정확성을 높였다.

🔗 원문 보기

루비 해시 패턴 파서 업데이트: 코드에 미치는 영향과 내부 구조 개선

루비 파서의 해시 패턴 노드 구조를 NODE_HSHPTN에서 명확한 의미를 가진 HashPatternNode로 리팩토링하여 유지보수성과 정확성을 높였다.

Ruby-News | 루비 AI 뉴스

От регулярок к ANTLR4: три архитектурных решения на парсере бизнес-формул

Три года назад я писал свой первый коммерческий парсер на ANTLR4 — для бизнес-формул аналитической системы. Несколько лет спустя я бы сделал его иначе в трёх центральных местах. Разбираю каждое: левая рекурсия для приоритета операторов, Listener vs Visitor, и почему getText() для повторного парсинга — антипаттерн.

https://habr.com/ru/articles/1027742/

#antlr #antlr4 #парсер #parser #грамматика #dsl #java #spring_boot #compiler #code_generation

От регулярок к ANTLR4: три архитектурных решения на парсере бизнес-формул

Одна из самых запомнившихся задач за три года коммерческой разработки — парсер бизнес-формул в аналитической системе. Выражения приходили строками из пользовательского ввода: арифметика, сравнения,...

Хабр
@kalisz79 #parser neurogęsi. i potem człowiekowi z głowy wyjść nie może gęś-chirurg

Мотивация, оптимизация, коробочка, жабочка и «налог на усталость»

Я не программист. Я архитектор, проектирую дома, а полгода назад не знала, где живут скрипты и питоны. Но когда важный для меня чат в Telegram собрались удалять, я попросила нейросеть написать парсер – и пропала. С тех пор прошло полгода. Я всё ещё доделываю приложение. У него есть имя – Розитта, розовая робожаба на иконке. И оно пожирает мои ночи, деньги на такси и остатки семейного спокойствия. Это не история успеха за 4 дня. Это история о том, как взрослый человек с семьёй, работой и падающим забором ушёл в вайбкодинговый запой – и что из этого вышло. Все совпадения с реальными нейросетями не случайны, а промпты – настоящие. Заглянуть в цифровое болото

https://habr.com/ru/articles/1022674/

#telethon #parser #deepseek #околоайтишник #telegram #вайбкодинг

Мотивация, оптимизация, коробочка, жабочка и «налог на усталость»

Я не программист. Я архитектор, проектирую дома, а полгода назад не знала, где живут скрипты и питоны. Но когда планировалось удаление важного для меня чата в Telegram, я попросила нейросеть написать...

Хабр

#Development #Launches
Syntaqlite Playground · Parse, format, validate, and tokenize SQLite queries, https://ilo.im/16by65

_____
#Parser #Formatter #Validator #Tokenizer #SQL #SQLite #Databases #Server #WebDev #Backend

Syntaqlite Playground

This week on the blog: the latest release of my Ophis assembler hit an ugly corner of 6502 assembly language syntax (Z80 has it too, x86 and m68k don't), and that turns out to be a good excuse to drop a couple of thousand words on parsing theory.

Also, the Bison parser generator is cooler than it was the last time I looked at it.

https://bumbershootsoft.wordpress.com/2026/04/04/some-subtleties-when-parsing-6502-assembly-language/

#6502asm #parser #assembly

Some Subtleties When Parsing 6502 Assembly Language

I recently made a new release of my Ophis assembler. I ended that announcement with a note that fixing some internal logic issues was more exciting than I’d bargained for, but I didn’t …

Bumbershoot Software

chibicc-dumper makes public.
A JSON dumper tool derived from chibicc that can output C language tokens and ASTs.

This is a small tool that extracts token sequences and ASTs from C source code and outputs them as JSON.
With this tool, generating bridge code—such as FFI—from C source code becomes easier than before.

https://github.com/kekyo/chibicc-dumper

#chibicc #tokenizer #parser #ast #typescript

One Open-source Project Daily

Simple .INI file parser in C, good for embedded systems

https://github.com/benhoyt/inih

#1ospd #opensource #c #configparser #embeddedsystems #ini #parser
GitHub - benhoyt/inih: Simple .INI file parser in C, good for embedded systems

Simple .INI file parser in C, good for embedded systems - benhoyt/inih

GitHub