Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-712

Separate evaluation from parsing in Stellar

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Done
    • Major
    • Resolution: Done
    • None
    • 0.4.0
    • None

    Description

      With the current implementation of Stellar, we cannot cache the parse tree and then apply it after the fact. It's just an artifact of how we do the parsing: we actually execute the statement as we parse rather than constructing an AST that can then be evaluated later given a message. Essentially what I'm proposing is that we build the equivalent of Pattern.compile() in Java except for Stellar.

      We should for multiple reasons:

      • code clarity - decoupling the stellar language from the generated parser code
      • performance - saving lexing and parsing for every message

      Attachments

        Issue Links

          Activity

            People

              cestella Casey Stella
              cestella Casey Stella
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: