Better HN
topnewbestaskshowjobs
Log inSign up

nobody_special

3 karma · joined Oct 13, 2025 (1y ago) · 1 submissions

Submissions

comment 1y ago · link · parent

I wrote a BASIC interpreter that supported integers and strings circa 1979. Written in assembly, it used a simple precedence parser. I measured its CPU utilization under cpu-intensive loads: ~9.5% for lexical/token analysis, ~20% for the parser, and ~69.5% for semantic work.

It was a lot of fun. The assembler I used was really powerful; I used its macro facilities to create ‘rule’ macros that defined the BNF of the language.

Congrats on your own implementation!