Nothing Special   »   [go: up one dir, main page]

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

Ocaml: token name As makes generated lexer fail #289

Closed
andreasabel opened this issue Jan 27, 2020 · 0 comments
Closed

Ocaml: token name As makes generated lexer fail #289

andreasabel opened this issue Jan 27, 2020 · 0 comments
Assignees
Labels
bug lexer Concerning the generated lexer OCaml
Milestone

Comments

@andreasabel
Copy link
Member
Foo.  Main ::= As Bs As Bs ;

token As 'a'+ ;
token Bs 'b'* ;

The generated ocaml lexer contains line

let as = 'a' +

which is a syntax error since as is a keyword of ocamllex.

@andreasabel andreasabel added bug OCaml lexer Concerning the generated lexer labels Jan 27, 2020
@andreasabel andreasabel self-assigned this Jan 27, 2020
@andreasabel andreasabel added this to the 2.8.4 milestone Jan 27, 2020
andreasabel added a commit that referenced this issue Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug lexer Concerning the generated lexer OCaml
Projects
None yet
Development

No branches or pull requests

1 participant