User loginNavigation |
Is There a Standard Formalism for Describing Abstract Syntax Trees?I'm in a position where I need to describe an algorithm that operates over an abstract syntax tree. In this sense, the language would be that of a simple 'while' language and I'm only interested in statement level detail. An example of what I'm looking for would be a good, mathematically precise description of implementing a control flow graph. Does anyone know of any articles, papers, books with such a discussion? An example: Program: A = 0 while A != 10 if A == 5 then print "hello, 5!" else print "waiting for a 5..." endif A = A + 1 endwhile The obvious AST: [stamentlist] +[assignment] +[while] +[statementlist] +[if] +[statementlist] +[print] +[statementlist] +[print] +[assignment] By markt at 2008-09-16 17:06 | LtU Forum | previous forum topic | next forum topic | other blogs | 5838 reads
|
Browse archives
Active forum topics |
Recent comments
27 weeks 1 day ago
27 weeks 2 days ago
27 weeks 2 days ago
49 weeks 3 days ago
1 year 1 week ago
1 year 3 weeks ago
1 year 3 weeks ago
1 year 5 weeks ago
1 year 10 weeks ago
1 year 10 weeks ago