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

Port rd_parser (Recursive Decent Parser) #2

Open
14 tasks
obenjiro opened this issue Oct 29, 2017 · 1 comment
Open
14 tasks

Port rd_parser (Recursive Decent Parser) #2

obenjiro opened this issue Oct 29, 2017 · 1 comment

Comments

@obenjiro
Copy link
Member

obenjiro commented Oct 29, 2017

We need to port JavaScript Module to Java
https://github.com/SimplePEG/JavaScript/blob/master/src/rd_parser.js

I highly recommend to do write tests for each and every method (it will help a lot)
https://github.com/SimplePEG/JavaScript/blob/master/test/rd_parser.combo.spec.js

To make RD parser work we need to write:

  • get_last_error
  • string
  • regex_char
  • sequence
  • ordered_choice
  • zero_or_more
  • one_or_more
  • optional
  • and_predicate
  • not_predicate
  • end_of_file
  • rec
  • action
  • call_rule_by_name

PS: WARNING - JS, Java, Python and Go version should behave the same, so if you spot problems in code don't fix them, create an issue in SimplePEG/SimplePEG

@obenjiro obenjiro mentioned this issue Oct 29, 2017
@vladimir-x
Copy link
Contributor

understood

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

2 participants