Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for implicit tokens #41

Open
ptersilie opened this issue Nov 19, 2018 · 1 comment
Open

Support for implicit tokens #41

ptersilie opened this issue Nov 19, 2018 · 1 comment
Assignees

Comments

@ptersilie
Copy link
Member

ptersilie commented Nov 19, 2018

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.

@ltratt
Copy link
Member

ltratt commented Nov 19, 2018

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants