... | ... | @@ -50,7 +50,7 @@ Some examples of parse trees and ASTs: |
|
|
|
|
|
* Python: [parse tree](https://docs.python.org/3/reference/grammar.html) and [AST](https://docs.python.org/3/library/ast.html#abstract-grammar).
|
|
|
* C: [parse tree](https://www.lysator.liu.se/c/ANSI-C-grammar-y.html) and [AST](https://www.cs.utah.edu/flux/flick/current/doc/guts/gutsch6.html).
|
|
|
* Fortran: [parse tree](http://docs.cray.com/books/007-3694-003/html-007-3694-003/faxalchri.html) (see also the Appendix D in the [Fortran 2008 Standard](http://www.j3-fortran.org/doc/year/10/10-007.pdf) for another parse tree) and [AST]().
|
|
|
* Fortran: [parse tree](http://docs.cray.com/books/007-3694-003/html-007-3694-003/faxalchri.html) (see also the Appendix D in the [Fortran 2008 Standard](http://www.j3-fortran.org/doc/year/10/10-007.pdf) for another parse tree). I haven't found an example of an AST for Fortran.
|
|
|
|
|
|
# Does every compiler need an AST?
|
|
|
|
... | ... | |