use of org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition in project xtext-core by eclipse.
the class SyntacticSequencerPDAProviderNavigatorTest method testAmbiguousManyOptional.
@Test
public void testAmbiguousManyOptional() throws Exception {
ISynAbsorberState start = getParserRule("Rule: a1=ID 'kw1' 'kw2'* a2=ID;");
ISynTransition trans = findTransition(start, "a1=ID", "a2=ID");
assertFalse(trans.involvesUnassignedTokenRuleCalls());
assertTrue(trans.isSyntacticallyAmbiguous());
// assertEquals(1, trans.getDistanceWithStackToAbsorber(newStack()));
assertEquals("['kw1']", trans.getShortestPathToAbsorber(newStack()).toString());
}
Aggregations