Skip to content

Port rd_parser (Recursive Decent Parser) #2

Open
@obenjiro

Description

@obenjiro

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions