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

Custom Error Message argument for CONSUME #543

Closed
bd82 opened this issue Aug 25, 2017 · 0 comments
Closed

Custom Error Message argument for CONSUME #543

bd82 opened this issue Aug 25, 2017 · 0 comments

Comments

@bd82
Copy link
Member

bd82 commented Aug 25, 2017

$.RULE("assignStatement", () => {
   $.CONSUME(Let)
   $.CONSUME(Name)
   $.CONSUME(Equals, { ERR_MSG: "Missing equals operator, In our language variables must always be initialized, not only declared" } )
   $.SUBRULE($.expression)
   $.CONSUME(SemiColon, { ERR_MSG: "Missing SemiColon at end of Statement" } )
})
@bd82 bd82 changed the title Custom Error Message for CONSUME Custom Error Message argument for CONSUME Aug 25, 2017
@bd82 bd82 added this to the V1.0.0 milestone Sep 2, 2017
@bd82 bd82 closed this as completed in 0b874a5 Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant