### ----------------------------------------------------
### -- Grammar::PrettyErrors
### -- Licenses: Artistic-2.0
### -- Authors: Brian Duggan
### -- File: eg/simple.raku
### ----------------------------------------------------
use Grammar::PrettyErrors;

grammar G does Grammar::PrettyErrors {
  rule TOP {
    <hello>
    <world>
  }
  token hello { hi }
  token world { there }
}

#G.new.parse('hi here') orelse say 'failed';
G.new.parse('hi here') orelse .exception.say;


