Skip to content

AS3Parser - proposed new syntax #237

@hydroper

Description

@hydroper

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions