bbu/simple-interpreter
View on GitHub ↗ ★ 155 C
A hackable and extensible lexer, parser and interpreter for a minimalistic, imperative, C-like language.
8 mentions on Hacker News by 2 people: 1 story, 7 comments · first 2015-08-14 · latest 2017-05-05
20082026
-
…similar project (not a compiler but an interpreter for a small, integer-only imperative language): https://github.com/bbu/simple-interpreter Unlike this recursive-descent parser, my minimalistic language uses a table-driven shift-reduce…
comment by bluetomcat · 2017-05-05 · in T3X – a minimal procedural language -
I recently created a toy interpreter for a minimalistic C-like language that is easily extensible: https://github.com/bbu/simple-interpreter I am also currently developing a "real" language that is based on the same lexing and parsing…
comment by bluetomcat · 2016-06-22 · in Show HN: Writing my first interpreter in C for fun -
…function, keeping the grammar very understandable. I think it's a very elegant algorithm: https://github.com/bbu/simple-interpreter
comment by bluetomcat · 2016-06-15 · in Show HN: My own C compiler (just for fun) -
…parser asks whether it should perform the reduction for a matched rule, or shift one token more: https://github.com/bbu/simple-interpreter
comment by bluetomcat · 2016-03-31 · in Super Tiny Compiler -
…anyone who tries to understand the basic mechanics of parsing an imperative curly-brace language: https://github.com/bbu/simple-interpreter
comment by bluetomcat · 2016-03-31 · in Super Tiny Compiler -
I just added array support: https://github.com/bbu/simple-interpreter/commit/392c38e7899... The arrays themselves are dynamically realloc'ed and checked for out of bounds access. I've also added some runtime warnings for access to…
comment by bluetomcat · 2015-08-16 · in Show HN: A toy interpreter for a minimalistic imperative language in 1.3k LoC -
…use a `realloc' for your variable storage, so you wouldn't run out of space or have a hard limit. https://github.com/bbu/simple-interpreter/blob/master/src/ru... And of course I want to test this myself with a few interesting programs. In…
comment by xigency · 2015-08-14 · in Show HN: A toy interpreter for a minimalistic imperative language in 1.3k LoC