Grammar is a language for making languages.
Below is some code written in Grammar to create a simple language called Panda.
pandaParser root catchAllParser expressionParser operatorCell enum + - intCell expressionParser cells operatorCell catchAllCellType intCell
The Grammar code can generate a parser that parses statements like
+ 1 2 5 10 and
- 10 2.
Yes! The Tree Language Designer is an online tool for writing Grammar code to build languages right in your browser.
The following major features are likely to be added to a future version of Grammar:
https://imports and perhaps something like
type websitecertain parsers would come into/out of scope.
inScopeimplementation may undergo a refactor to allow for further future possibilities. For example, we may want to consider alternate approaches to
inScopethan the current inheritance system.
Here's a list of the notable changes in Grammar:
Nodeit is now
getX()have been changed to getters like