mx-scissortail/WebBS
View on GitHub ↗ ★ 51 JavaScript
A toy language that compiles to WebAssembly
3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2019-12-12 · latest 2020-09-15
20082026
-
…back that's intended to show how simple a hand-written parser (and code generator) can end up: https://github.com/j-s-n/WebBS It's not that hard to statically track type information along the way - the above example requires a second pass…
comment by catpolice · 2020-09-15 · in Which Parsing Approach? -
…into the nitty-gritty of writing your own parser/compiler should check it out. The source is here: https://github.com/j-s-n/WebBS . If you want to play around with the language and inspect the generated ASTs and WASM bytecode, there's an…
comment by catpolice · 2019-12-27 · in Build Your Own WebAssembly Compiler -
…into the nitty-gritty of writing your own parser/compiler should check it out. The source is here: https://github.com/j-s-n/WebBS (relevant files for parsing are in /compiler - start with lexer.js, parser.js and syntax.js). If you want to…
comment by catpolice · 2019-12-12 · in Write a parser with JavaScript