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

Lack of examples and request for help in using PEG #1

Open
LazarenkoA opened this issue Dec 18, 2023 · 0 comments
Open

Lack of examples and request for help in using PEG #1

LazarenkoA opened this issue Dec 18, 2023 · 0 comments

Comments

@LazarenkoA
Copy link

Hi there,

I've been exploring the examples in your repository, and I find that there's a significant lack of sample input data for a better understanding and debugging. It's quite challenging to grasp, especially for someone who hasn't worked with PEG before.

I have a task at hand to write a parser for a specific domain-specific language (DSL). The ultimate goal is to generate an AST tree, and the language has a fairly simple syntax. For instance, here are some sample conditions:

If CurrentVars = Undefined Then	
    CurrentVars = New Structure;
EndIf;

And here are sample loops:

For Each Attrib In ActionItem.Attributes Do
    CurrentVars.Insert(Attrib.Name, Attrib.NodeValue);
EndDo;

Could you provide guidance on how to configure the parser? Even a basic setup to get me started would be immensely helpful. From there, I can take it forward on my own.

Thank you in advance for your assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant