Directives: error

start: McCoy {1}

McCoy:  curse ',' name ", I'm a Perl Hacker, not a" a_hacker '!'
      | pronoun 'broken,' name '!'
      | <error>


curse:    "Rotten Camels" | "Holy regex" | "Greedy globs"
name:     "Larry" | "Guido" | "John" | "Dennis" | "Bjarne"
pronoun:  "It's" | "The code is"
a_hacker: "Python programmer" | "C coder" | "Basic builder" | "Lisp linguist"

In [1] := Rotten Camels,

       ERROR (line 1): Invalid McCoy: Was expecting name
Out [1] = <<UNDEF>>
In [2] := Holy regex, Guido, I'm a Perl Hacker, not a doctor!

       ERROR (line 1): Invalid McCoy: Was expecting a hacker but found
                       "doctor!" instead
Out [2] = <<UNDEF>>
In [3] := The code is working

       ERROR (line 1): Invalid McCoy: Was expecting 'broken,' but found
                       "working" instead
Out [3] = <<UNDEF>>

[Prev] [Next] [Index]