LexPrism

LexPrism Support

Walk through a grammar

  1. In Grammar Library, load Sum expression and tap Analyze grammar.
  2. Grammar Audit shows Ready for replay. Tap Nullable & Sets and inspect FIRST for <Tail>.
  3. Open Predictive Table and tap Tail × PLUS. The sample has 4 filled cells and 0 conflicts.
  4. In Token Replay, run ID PLUS ID. The result is Accepted in 9 steps. At step 4 the parser expands <Tail> while PLUS is the lookahead.
  5. Tap Freeze report. From Report Detail, preview the PDF or share its files.

Write your own rules

%start <Expr>
<Expr> ::= <Term> <Tail>
<Tail> ::= PLUS <Term> <Tail> | EPS
<Term> ::= ID

Paste UTF-8 text in Rule Editor. Use uppercase named tokens, angle brackets for rule names and EPS for an empty alternative. A replay has up to 120 input tokens. Select an analyzed cell or diagnostic to inspect its source.

Contact

Email asher11223366@gmail.com with the app version, the rule or step you are inspecting and the observed behavior.