Hacker GitHub

← All repos

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

Mentions per year 8 mentions · busiest year 2016 (4)
20082026
  1. …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
  2. 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…
  3. …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)
  4. …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
  5. …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
  6. 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…
  7. …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…