The Wayback Machine - https://web.archive.org/web/20200902133454/https://github.com/topics/grammar
Skip to content
#

grammar

A grammar describes the syntax of a programming language, and might be defined in Backus-Naur form (BNF). A lexer performs lexical analysis, turning text into tokens. A parser takes tokens and builds a data structure like an abstract syntax tree (AST). The parser is concerned with context: does the sequence of tokens fit the grammar? A compiler is a combined lexer and parser, built for a specific grammar.

Here are 639 public repositories matching this topic...

felixvuo
felixvuo commented Dec 18, 2019

I think it would be nice to have the option to dump a raw graphviz DOT file instead of the sppf.png for a few reasons:

  • the file size is a lot smaller
  • it's nice to be able to "do things" with the resulting tree in its structured form, rather than navigate the rendered bitmap
  • it's only one extra (or no extra) line and could be optional, e.g. if you've turned on "debug" mode.

Any though

You can’t perform that action at this time.