Skip to content

Can your PL/I grammar support no reserved words? #5

@The-Futurist

Description

@The-Futurist

Can the Antlr PL/I grammar parse an assignment to a variable that has same spelling as a keyword? e.g


call = 100;

declare = 100;

goto = if;

/* and */

if if = else then
    else = then;
else
    then = if;


etc.

Also see this: antlr/antlr4#4018

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions