openstrat icon indicating copy to clipboard operation
openstrat copied to clipboard

AST 2.1 Abstract Syntax Tree

Open Rich2 opened this issue 3 years ago • 0 comments

AST Version 2.1

The syntax tree is defined by the following hierarchy from lowest precedence to highest.

1 Statements 2 Assignment operator expressions 3 Colon operator expressions 4 Clauses 5 The rest of the Scala operator precedence value 6 Spaced Tokens 7 Dot separated Tokens

A File can be interpreted as an expression or a statement sequence. Files and directories can be included in the syntax tree. This needs to be worked out.

in version 2.0, colon operator expressions had a higher precedence than clauses. In version 1 they had a higher precedence than an assignment operator.

Rich2 avatar Feb 25 '22 17:02 Rich2