Sha256: 5859ecee7f8dfabee7c91e2d96675965329f8c9aa03e0600844eb9579ce3ba63

Contents?: true

Size: 2 KB

Versions: 2

Compression:

Stored size: 2 KB

Contents

Productions:
  s → e 
  e → t ";" 
  e → t "+" e 
  t → NUMBER 
  t → "(" e ")" 
  $start → s $ 

Precedence:
  --- highest
  nonassoc 1:
    {_}
  nonassoc 0:
    {$}
  --- lowest

  State 0:
    0/n0: $start →  • s $
      {}
    1/n1: s →  • e
      {}
    2/n1: e →  • t ";"
      {}
    3/n1: e →  • t "+" e
      {}
    4/n1: t →  • NUMBER
      {}
    5/n1: t →  • "(" e ")"
      {}
    transitions:
      s: State 1
      e: State 2
      t: State 3
      NUMBER: State 4
      "(": State 5

  State 1:
    6/n0: $start → s • $
      {}
    transitions:
      $: State 6

  State 2:
    7/n1: s → e • 
      {$}
    reductions:
      $: Rule 1

  State 3:
    8/n1: e → t • ";"
      {}
    9/n1: e → t • "+" e
      {}
    transitions:
      ";": State 7
      "+": State 8

  State 4:
    10/n1: t → NUMBER • 
      {";", "+"}
    reductions:
      ";": Rule 4
      "+": Rule 4

  State 5:
    11/n1: t → "(" • e ")"
      {}
    12/n1: e →  • t ";"
      {}
    13/n1: e →  • t "+" e
      {}
    14/n1: t →  • NUMBER
      {}
    15/n1: t →  • "(" e ")"
      {}
    transitions:
      e: State 9
      t: State 3
      NUMBER: State 4
      "(": State 5

  State 6:
    16/n0: $start → s $ • 
      {}
    accepting:
      $: Rule 0

  State 7:
    17/n1: e → t ";" • 
      {$, ")"}
    reductions:
      $: Rule 2
      ")": Rule 2

  State 8:
    18/n1: e → t "+" • e
      {}
    19/n1: e →  • t ";"
      {}
    20/n1: e →  • t "+" e
      {}
    21/n1: t →  • NUMBER
      {}
    22/n1: t →  • "(" e ")"
      {}
    transitions:
      e: State 10
      t: State 3
      NUMBER: State 4
      "(": State 5

  State 9:
    23/n1: t → "(" e • ")"
      {}
    transitions:
      ")": State 11

  State 10:
    24/n1: e → t "+" e • 
      {$, ")"}
    reductions:
      $: Rule 3
      ")": Rule 3

  State 11:
    25/n1: t → "(" e ")" • 
      {";", "+"}
    reductions:
      ";": Rule 5
      "+": Rule 5

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
antelope-0.1.7 examples/deterministic.output
antelope-0.1.6 examples/deterministic.output