↓ Skip to main content

Articles

LR-Parsing in Go

LR-Parsing in Go

Conventional parser generator do not handle ambiguous grammars well. Especially for ad-hoc DSLs, however, grammar ambiguity is quite common. GoRGO implements two types of bottom-up parsers to deal with ambiguity: Earley parsing and GLR-parsing.
Parsing MetaPost

Parsing MetaPost

·840 words·4 mins
The MetaPost language is reminiscent of mathematical writing. Its variable names look innocent enough, but from a parser’s point of view they carry different semantics than with other programming languages.