Commit be77dbb
committed
Add ASDL description of the Fluent syntax.
ASDL is a language for describing ASTs. It's a bit like structs and enums, but
more concise and language-agnostic. It's different from (E)BNF in that it
doens't describe the grammar—but rather the data structure that can be used by
a compiler or an interpreter.
References:
"The Zephyr Abstract Syntax Description Language"
ftp://ftp.cs.princeton.edu/techreports/1997/554.pdf
"Design of CPython’s Compiler"
https://docs.python.org/devguide/compiler.html
Using ASDL to describe ASTs in compilers
http://eli.thegreenplace.net/2014/06/04/using-asdl-to-describe-asts-in-compilers
"What is Zephyr ASDL?"
http://www.oilshell.org/blog/2016/12/11.html1 parent 79fadb1 commit be77dbb
1 file changed
+31
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments