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

[ENHANCEMENT] Use PEG #8

Closed
darkdarcool opened this issue Dec 6, 2021 · 8 comments
Closed

[ENHANCEMENT] Use PEG #8

darkdarcool opened this issue Dec 6, 2021 · 8 comments
Assignees
Milestone

Comments

@darkdarcool
Copy link

Using PEG will allow you to get the lexer and parser done really quickly, and the right way, and there's less room for error.

I recommend considering this

@kokonut27
Copy link
Member

Could you give a link? Also, whats the difference between PEG and PLY (or SLY)?

And I'm purposely trying to start the Lexer and Parser on my own for a challenge :)

@kokonut27 kokonut27 self-assigned this Dec 6, 2021
@kokonut27 kokonut27 added enhancement New feature or request High Priority labels Dec 6, 2021
@kokonut27 kokonut27 added this to the Lexer milestone Dec 6, 2021
@darkdarcool
Copy link
Author

Look at this: https://github.com/erikrose/parsimonious

Also PEG is something you compile via command line, and it omits a file that can be used.

Python uses this for it's lexer and parse(but in C), and it is quite good

@kokonut27
Copy link
Member

kokonut27 commented Dec 6, 2021

Oh, okay. I'll try that later, and if you don't mind, is it possible if you could set up a PR example? Or a Repo example?

Thanks for the info!

@kokonut27 kokonut27 pinned this issue Dec 6, 2021
@kokonut27 kokonut27 changed the title Use PEG [ENHANCEMENT] Use PEG Dec 6, 2021
@kokonut27
Copy link
Member

Heya, sorry for asking again, but could you provide an example PR, repo, or repl? Thanks!

@darkdarcool
Copy link
Author

darkdarcool commented Dec 7, 2021

I can’t, it’s kind of special to the syntax you have in mind. There is an online version at this but it’s the node version.

@kokonut27
Copy link
Member

Oh, okay. Thanks!

@github-actions
Copy link

github-actions bot commented Feb 6, 2022

Stale issue message

@github-actions
Copy link

Stale issue message

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

2 participants