I've really covered a lot of cases in AS3Parser, fixed a lot of bugs as I could see in demo (mostly related to error recovery), and introduced both CONFIG::X { ... } (parses inner with same parent directive context) and a multiple branching configuration { ... } directive (if-else).
configuration {
if (FOO::EXAMPLE=bar) {
/* Action */
} else if (ANOTHER_CONST) {
/* Action */
} else {
/* Action */
}
}
Demo
It would be nice if Apache Royale takes into consideration the syntactic features introduced in AS3Parser.
New Syntax
Processing Deviations
In short, I try to introduce solely syntactic features that conform to ECMAScript 4 and Java dialects. The only processing deviation is the include directive which does not concatenate text, but contributes syntactic nodes instead, maintaining lines and columns.
I've really covered a lot of cases in AS3Parser, fixed a lot of bugs as I could see in demo (mostly related to error recovery), and introduced both
CONFIG::X { ... }(parses inner with same parent directive context) and a multiple branchingconfiguration { ... }directive (if-else).Demo
It would be nice if Apache Royale takes into consideration the syntactic features introduced in AS3Parser.
New Syntax
Processing Deviations
In short, I try to introduce solely syntactic features that conform to ECMAScript 4 and Java dialects. The only processing deviation is the
includedirective which does not concatenate text, but contributes syntactic nodes instead, maintaining lines and columns.