assertEquals(result.getType(), Atype);
engine = new Interpreter(g, new ANTLRStringStream("b"));
result = engine.scan("A");
assertEquals(result.getType(), Atype);
engine = new Interpreter(g, new ANTLRStringStream("baa"));
result = engine.scan("A");
assertEquals(result.getType(), Atype);
}
public void testSimpleLoops() throws Exception {
Grammar g = new Grammar(