Repository navigation
Replies: 2 comments
|
If I understand the question correctly the answer is a resounding yes, absolutely, it's a core concept of the PEGTL. First you implement the grammar, i.e. a set of parsing rules, then you attach "actions" to selected rules. These actions are effectively callbacks that are called by the PEGTL whenever a parsing rule matches. |
0 replies
|
I got a very rapid response. I am impressed by this team |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am sorry, but I am lazy. I am thinking of creating a tool for my personal use; one of the features is an interactive editor.
an example of the syntax: open CSV 'foobar.csv '. The script must provide a generic callback; then, in the callback, determine the action: in this case, open a CSV file.
I hope that I expressed my ideas, and somebody can help me!
Thanks
All reactions