Sha256: ddf26b8c346726bbab8574e395db7106022e079852d3dee7821a6df27a8b6df5

Contents?: true

Size: 1.81 KB

Versions: 3

Compression:

Stored size: 1.81 KB

Contents

Productions:
  e → l "=" r 
  e → r 
  l → IDENT 
  l → "*" r 
  r → l 
  $start → e $ 

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

  State 0:
    0/n0: $start(0) →  • e(0:1) $
      {}
    1/n1: e(0:1) →  • l(0:2) "=" r(8:10)
      {}
    2/n1: e(0:1) →  • r(0:3)
      {}
    3/n1: l(0:2) →  • IDENT
      {}
    4/n1: l(0:2) →  • "*" r(5:9)
      {}
    5/n1: r(0:3) →  • l(0:2)
      {}
    transitions:
      e: State 1
      l: State 2
      r: State 3
      IDENT: State 4
      STAR: State 5

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

  State 2:
    7/n1: e → l • "=" r
      {}
    15/n1: r → l • 
      {$}
    transitions:
      EQUALS: State 8
    reductions:
      $: Rule 5

  State 3:
    9/n1: e → r • 
      {$}
    reductions:
      $: Rule 2

  State 4:
    10/n1: l → IDENT • 
      {$}
    reductions:
      $: Rule 3

  State 5:
    11/n1: l → "*" • r
      {}
    12/n1: r(5:9) →  • l(5:6)
      {}
    13/n1: l(5:6) →  • IDENT
      {}
    14/n1: l(5:6) →  • "*" r(5:9)
      {}
    transitions:
      r: State 9
      l: State 6
      IDENT: State 4
      STAR: State 5

  State 6:
    15/n1: r → l • 
      {$}
    reductions:
      $: Rule 5

  State 7:
    16/n0: $start → e $ • 
      {}
    accepting:
      $: Rule 0

  State 8:
    17/n1: e → l "=" • r
      {}
    18/n1: r(8:10) →  • l(8:6)
      {}
    19/n1: l(8:6) →  • IDENT
      {}
    20/n1: l(8:6) →  • "*" r(5:9)
      {}
    transitions:
      r: State 10
      l: State 6
      IDENT: State 4
      STAR: State 5

  State 9:
    21/n1: l → "*" r • 
      {$}
    reductions:
      $: Rule 4

  State 10:
    22/n1: e → l "=" r • 
      {$}
    reductions:
      $: Rule 1

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
antelope-0.1.4 examples/simple.output
antelope-0.1.3 examples/simple.output
antelope-0.1.2 examples/simple.output