-
Notifications
You must be signed in to change notification settings - Fork 0
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
Questions #1
Comments
Hello, it's a custom language designed for beef. It's a very simple, and limited language for describing language grammars (in bean format). Each line contains one rule, each rule must have 3 parts: left, right and name:
left and right should be name (or names) of the rules | tokens to match, for example:
will expect a (number or string) on left side, and a add token on right side, if matched it will pack them in a token named addition_start. Optionally each rule can have a meta attribute, this is used to manipulate the parse tree, for example:
I made beef because I didn't want to manually make bean token | rule objects. |
So running |
We don't have any tests for now, but soon I'll add. |
I've made a csv parser using bean, the grammar file is located here: https://github.com/pouya-eghbali/ncsv/blob/master/ncsv.beef you can use the vscode extension to highlight it. |
What is .beef? Googling didn't help...
The text was updated successfully, but these errors were encountered: