Skip to content

Support for implicit tokens #41

Open

Description

@ptersilie

In Yacc we can define implicit tokens like. From the documentation:

date  :  month_name  day  ','  year   ;

The comma , is enclosed in single quotes; this implies that the comma is to appear literally in the input.

From what I can tell, double quotes do the same thing.

Activity

  1. ltratt commented on Nov 19, 2018

    @ltratt
    Member

    We've agreed that this is expected behaviour: in grmtools, the lexer is expected to lex everything, whereas Yacc does some lexing itself. We should document this in an "differences from Yacc" section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions