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

lezer-generator message: Node has properties but no name #8

Closed
dxparker opened this issue Nov 26, 2019 · 2 comments

Comments

@dxparker
Copy link

@dxparker dxparker commented Nov 26, 2019

Running lezer-generator against the grammar below, taken from the Writing a Grammar section of the lezer documentation, exits with message: Node has properties but no name. I get the same results using a local build or using npx to run the lezer-generator on npm (v0.5.1)

bin/lezer-generator simple.grammar -o simple.js

Contents of simple.grammar:

@top { expression }

expression { Name | Number | BinaryExpression }

BinaryExpression { "(" expression ("+" | "-") expression ")" }

@tokens {
  Name { std.asciiLetter+ }
  Number { std.digit+ }
}
@marijnh

This comment has been minimized.

Copy link
Collaborator

@marijnh marijnh commented Nov 26, 2019

Ugh, I made a small change without thinking about it very much and of course it broke everything. Attached patch should help.

@marijnh

This comment has been minimized.

Copy link
Collaborator

@marijnh marijnh commented Nov 26, 2019

Where "attached patch" is lezer-parser/lezer-generator@8a9aae0

@marijnh marijnh closed this Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.