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

Request - simple lisp parsing example #952

Closed
bddap opened this issue Jun 1, 2019 · 4 comments · Fixed by #955
Closed

Request - simple lisp parsing example #952

bddap opened this issue Jun 1, 2019 · 4 comments · Fixed by #955

Comments

@bddap
Copy link

bddap commented Jun 1, 2019

This would be helpful.

@Geal
Copy link
Collaborator

Geal commented Jun 3, 2019

sorry, I do not have the time to work on this, but if you find or write a good one, I could add it to the list of examples

@MarkMcCaskey
Copy link
Contributor

@bddap didn't see this before posting #903 (comment) ; I made an s-expression parser using nom5 which is MIT licensed.

I'd be willing and able to contribute to a lisp parser example. What exactly did you have in mind? Something like S-expressions or a full parser for scheme or something?

@bddap
Copy link
Author

bddap commented Jun 3, 2019

Awesome! A very simple s-expression parser, something less than 100 lines, would make it easy to get started using nom. The json example is a good start, but an s-expr parser could be much simpler.

@MarkMcCaskey
Copy link
Contributor

@bddap
I just hacked out a little lisp https://github.com/MarkMcCaskey/nom/blob/master/examples/s_expression.rs ; I'm going to sleep now, but I'll add comments, clean it up, and make a PR tomorrow.

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

Successfully merging a pull request may close this issue.

3 participants