org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition Java Examples

The following examples show how to use org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TypeExpressionsSyntacticSequencer.java    From n4js with Eclipse Public License 1.0 6 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_LeftParenthesisKeyword_0_0_1_or___LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__.equals(syntax))
			emit_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_LeftParenthesisKeyword_0_0_1_or___LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_a.equals(syntax))
			emit_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_p.equals(syntax))
			emit_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q.equals(syntax))
			emit_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #2
Source File: AbstractCheckCfgSyntacticSequencer.java    From dsl-devkit with Eclipse Public License 1.0 6 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_CheckConfiguration___LeftCurlyBracketKeyword_5_0_RightCurlyBracketKeyword_5_2__q.equals(syntax))
			emit_CheckConfiguration___LeftCurlyBracketKeyword_5_0_RightCurlyBracketKeyword_5_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XBlockExpression_SemicolonKeyword_2_1_q.equals(syntax))
			emit_XBlockExpression_SemicolonKeyword_2_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XExpressionInClosure_SemicolonKeyword_1_1_q.equals(syntax))
			emit_XExpressionInClosure_SemicolonKeyword_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q.equals(syntax))
			emit_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XImportDeclaration_SemicolonKeyword_2_q.equals(syntax))
			emit_XImportDeclaration_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_XParenthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_XParenthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #3
Source File: ExBacktrackingBug325745TestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_Expression_LeftSquareBracketKeyword_1_0_a.equals(syntax))
			emit_Expression_LeftSquareBracketKeyword_1_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_LeftSquareBracketKeyword_2_0_q.equals(syntax))
			emit_Expression_LeftSquareBracketKeyword_2_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_RightSquareBracketKeyword_2_2_q.equals(syntax))
			emit_Expression_RightSquareBracketKeyword_2_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_RightSquareBracketKeyword_3_0_a.equals(syntax))
			emit_Expression_RightSquareBracketKeyword_3_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_SimpleTerm_AsteriskKeyword_0_1_q.equals(syntax))
			emit_SimpleTerm_AsteriskKeyword_0_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_SimpleTerm_ExclamationMarkKeyword_0_3_q.equals(syntax))
			emit_SimpleTerm_ExclamationMarkKeyword_0_3_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #4
Source File: AbstractFormatSyntacticSequencer.java    From dsl-devkit with Eclipse Public License 1.0 6 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_XAnnotation___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q.equals(syntax))
			emit_XAnnotation___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XBlockExpression_SemicolonKeyword_2_1_q.equals(syntax))
			emit_XBlockExpression_SemicolonKeyword_2_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XExpressionInClosure_SemicolonKeyword_1_1_q.equals(syntax))
			emit_XExpressionInClosure_SemicolonKeyword_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q.equals(syntax))
			emit_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XImportDeclaration_SemicolonKeyword_2_q.equals(syntax))
			emit_XImportDeclaration_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_XParenthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_XParenthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #5
Source File: Bug299395TestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_Model___LeftCurlyBracketKeyword_1_0_RightCurlyBracketKeyword_1_2__a.equals(syntax))
			emit_Model___LeftCurlyBracketKeyword_1_0_RightCurlyBracketKeyword_1_2__a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Model___LeftSquareBracketKeyword_2_0_RightSquareBracketKeyword_2_2__a.equals(syntax))
			emit_Model___LeftSquareBracketKeyword_2_0_RightSquareBracketKeyword_2_2__a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Model___RightCurlyBracketKeyword_1_2_LeftCurlyBracketKeyword_1_0__a.equals(syntax))
			emit_Model___RightCurlyBracketKeyword_1_2_LeftCurlyBracketKeyword_1_0__a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Model___RightCurlyBracketKeyword_1_2_LeftCurlyBracketKeyword_1_0__p.equals(syntax))
			emit_Model___RightCurlyBracketKeyword_1_2_LeftCurlyBracketKeyword_1_0__p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Model___RightSquareBracketKeyword_2_2_LeftSquareBracketKeyword_2_0__a.equals(syntax))
			emit_Model___RightSquareBracketKeyword_2_2_LeftSquareBracketKeyword_2_0__a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_SubModel___DigitOneKeyword_1_0_DigitTwoKeyword_1_1__a.equals(syntax))
			emit_SubModel___DigitOneKeyword_1_0_DigitTwoKeyword_1_1__a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_SubModel___DigitOneKeyword_1_0_DigitTwoKeyword_1_1__p.equals(syntax))
			emit_SubModel___DigitOneKeyword_1_0_DigitTwoKeyword_1_1__p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #6
Source File: RuleEngineSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_XBlockExpression_SemicolonKeyword_2_1_q.equals(syntax))
			emit_XBlockExpression_SemicolonKeyword_2_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XExpressionInClosure_SemicolonKeyword_1_1_q.equals(syntax))
			emit_XExpressionInClosure_SemicolonKeyword_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q.equals(syntax))
			emit_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XImportDeclaration_SemicolonKeyword_2_q.equals(syntax))
			emit_XImportDeclaration_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_XParenthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_XParenthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #7
Source File: SimpleUnorderedGroupsTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_Model_Bug302585Keyword_1_16_0_or_DigitFiveKeyword_1_4_0_or_DigitFourKeyword_1_3_0_or_DigitOneDigitOneKeyword_1_10_0_or_DigitOneDigitZeroKeyword_1_9_0_or_DigitSevenKeyword_1_6_0_or_DigitSixKeyword_1_5_0_or_DigitThreeKeyword_1_2_0.equals(syntax))
			emit_Model_Bug302585Keyword_1_16_0_or_DigitFiveKeyword_1_4_0_or_DigitFourKeyword_1_3_0_or_DigitOneDigitOneKeyword_1_10_0_or_DigitOneDigitZeroKeyword_1_9_0_or_DigitSevenKeyword_1_6_0_or_DigitSixKeyword_1_5_0_or_DigitThreeKeyword_1_2_0(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_UnorderedSerialization_DigitOneKeyword_1_0_0_0_a.equals(syntax))
			emit_UnorderedSerialization_DigitOneKeyword_1_0_0_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_UnorderedSerialization_DigitOneKeyword_1_0_0_0_p.equals(syntax))
			emit_UnorderedSerialization_DigitOneKeyword_1_0_0_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_UnorderedSerialization___DigitOneKeyword_1_0_0_0_p_or_DigitThreeKeyword_1_2_0_or_DigitTwoKeyword_1_1_0__q.equals(syntax))
			emit_UnorderedSerialization___DigitOneKeyword_1_0_0_0_p_or_DigitThreeKeyword_1_2_0_or_DigitTwoKeyword_1_1_0__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #8
Source File: BeeLangTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_ClosureExpression_VerticalLineKeyword_2_0_0_q.equals(syntax))
			emit_ClosureExpression_VerticalLineKeyword_2_0_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ConstructorCallExpression___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q.equals(syntax))
			emit_ConstructorCallExpression___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Function___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q.equals(syntax))
			emit_Function___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParanthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_ParanthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParanthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_ParanthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ProvidedCapability___LeftCurlyBracketKeyword_2_0_RightCurlyBracketKeyword_2_2__q.equals(syntax))
			emit_ProvidedCapability___LeftCurlyBracketKeyword_2_0_RightCurlyBracketKeyword_2_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #9
Source File: AbstractBacktrackingBug325745TestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_Expression_LeftSquareBracketKeyword_1_0_a.equals(syntax))
			emit_Expression_LeftSquareBracketKeyword_1_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_LeftSquareBracketKeyword_2_0_q.equals(syntax))
			emit_Expression_LeftSquareBracketKeyword_2_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_RightSquareBracketKeyword_2_2_q.equals(syntax))
			emit_Expression_RightSquareBracketKeyword_2_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_RightSquareBracketKeyword_3_0_a.equals(syntax))
			emit_Expression_RightSquareBracketKeyword_3_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_SimpleTerm_AsteriskKeyword_0_1_q.equals(syntax))
			emit_SimpleTerm_AsteriskKeyword_0_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_SimpleTerm_ExclamationMarkKeyword_0_3_q.equals(syntax))
			emit_SimpleTerm_ExclamationMarkKeyword_0_3_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #10
Source File: XtextTerminalsTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_ParenthesizedAssignableElement_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_ParenthesizedAssignableElement_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParenthesizedAssignableElement_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_ParenthesizedAssignableElement_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParenthesizedElement_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_ParenthesizedElement_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParenthesizedElement_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_ParenthesizedElement_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParenthesizedTerminalElement_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_ParenthesizedTerminalElement_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParenthesizedTerminalElement_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_ParenthesizedTerminalElement_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #11
Source File: TypesSyntacticSequencer.java    From n4js with Eclipse Public License 1.0 6 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_PrimaryTypeExpression_LeftParenthesisKeyword_0_0_1_or___LeftParenthesisKeyword_3_0_q_LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__.equals(syntax))
			emit_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_PrimaryTypeExpression_LeftParenthesisKeyword_0_0_1_or___LeftParenthesisKeyword_3_0_q_LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_CallableCtor_SemicolonKeyword_3_q.equals(syntax))
			emit_CallableCtor_SemicolonKeyword_3_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_q.equals(syntax))
			emit_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TAnnotation___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q.equals(syntax))
			emit_TAnnotation___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TField_SemicolonKeyword_5_q.equals(syntax))
			emit_TField_SemicolonKeyword_5_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TMethod_SemicolonKeyword_2_q.equals(syntax))
			emit_TMethod_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q.equals(syntax))
			emit_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #12
Source File: DomainModelTestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_Attribute_SemicolonKeyword_4_q.equals(syntax))
			emit_Attribute_SemicolonKeyword_4_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_DataType_SemicolonKeyword_2_q.equals(syntax))
			emit_DataType_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Reference_SemicolonKeyword_4_q.equals(syntax))
			emit_Reference_SemicolonKeyword_4_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #13
Source File: AssignmentFinderTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #14
Source File: AbstractFragmentTestLanguageExSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_NamedInParentheses_LeftParenthesisKeyword_0_0_a.equals(syntax))
			emit_NamedInParentheses_LeftParenthesisKeyword_0_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_RecursiveFragment_LeftParenthesisKeyword_0_0_a.equals(syntax))
			emit_RecursiveFragment_LeftParenthesisKeyword_0_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #15
Source File: ConcreteSyntaxValidationTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #16
Source File: SyntacticSequencerPDAProviderNavigatorTest.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Test
public void testTerminal() throws Exception {
	ISynAbsorberState start = getParserRule("Rule: a1=ID FOO a2=ID; terminal FOO: '$';");
	ISynTransition trans = findTransition(start, "a1=ID", "a2=ID");
	assertTrue(trans.involvesUnassignedTokenRuleCalls());
	assertFalse(trans.isSyntacticallyAmbiguous());
	//		assertEquals(1, trans.getDistanceWithStackToAbsorber(newStack()));
	assertEquals("[FOO]", trans.getShortestPathToAbsorber(newStack()).toString());
}
 
Example #17
Source File: PartialContentAssistTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #18
Source File: Bug304681TestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_Attribute2_SemicolonKeyword_3_1_or___LeftCurlyBracketKeyword_3_0_0_RightCurlyBracketKeyword_3_0_2__.equals(syntax))
			emit_Attribute2_SemicolonKeyword_3_1_or___LeftCurlyBracketKeyword_3_0_0_RightCurlyBracketKeyword_3_0_2__(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ConstraintDefinition___ParametersKeyword_3_0_0_SemicolonKeyword_3_0_2__a.equals(syntax))
			emit_ConstraintDefinition___ParametersKeyword_3_0_0_SemicolonKeyword_3_0_2__a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ConstraintDefinition___ParametersKeyword_3_0_0_SemicolonKeyword_3_0_2__p.equals(syntax))
			emit_ConstraintDefinition___ParametersKeyword_3_0_0_SemicolonKeyword_3_0_2__p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ConstraintDefinition___SemicolonKeyword_3_0_2_ParametersKeyword_3_0_0__a.equals(syntax))
			emit_ConstraintDefinition___SemicolonKeyword_3_0_2_ParametersKeyword_3_0_0__a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Object_OptionalLoopKeyword_5_6_0_a.equals(syntax))
			emit_Object_OptionalLoopKeyword_5_6_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Object_OptionalLoopKeyword_5_6_0_p.equals(syntax))
			emit_Object_OptionalLoopKeyword_5_6_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Object___AfterKeyword_5_5_2_OptionalLoopKeyword_5_6_0_a_BeforeKeyword_5_5_0__a.equals(syntax))
			emit_Object___AfterKeyword_5_5_2_OptionalLoopKeyword_5_6_0_a_BeforeKeyword_5_5_0__a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Object___BeforeKeyword_5_5_0_AfterKeyword_5_5_2_OptionalLoopKeyword_5_6_0_a__a.equals(syntax))
			emit_Object___BeforeKeyword_5_5_0_AfterKeyword_5_5_2_OptionalLoopKeyword_5_6_0_a__a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Object___OptionalLoopKeyword_5_6_0___BeforeKeyword_5_5_0_AfterKeyword_5_5_2__a__a.equals(syntax))
			emit_Object___OptionalLoopKeyword_5_6_0___BeforeKeyword_5_5_0_AfterKeyword_5_5_2__a__a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Object___OptionalLoopKeyword_5_6_0___BeforeKeyword_5_5_0_AfterKeyword_5_5_2__a__p.equals(syntax))
			emit_Object___OptionalLoopKeyword_5_6_0___BeforeKeyword_5_5_0_AfterKeyword_5_5_2__a__p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Object___OptionalLoopKeyword_5_6_0_q___BeforeKeyword_5_5_0_AfterKeyword_5_5_2__q__p.equals(syntax))
			emit_Object___OptionalLoopKeyword_5_6_0_q___BeforeKeyword_5_5_0_AfterKeyword_5_5_2__q__p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Object_____BeforeKeyword_5_5_0_or___OptionalLoopKeyword_5_6_0_p_BeforeKeyword_5_5_0_____AfterKeyword_5_5_2__a.equals(syntax))
			emit_Object_____BeforeKeyword_5_5_0_or___OptionalLoopKeyword_5_6_0_p_BeforeKeyword_5_5_0_____AfterKeyword_5_5_2__a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Object_____OptionalLoopKeyword_5_6_0_q___BeforeKeyword_5_5_0_AfterKeyword_5_5_2__q__p_MandatoryLoopKeyword_5_7_0__q.equals(syntax))
			emit_Object_____OptionalLoopKeyword_5_6_0_q___BeforeKeyword_5_5_0_AfterKeyword_5_5_2__q__p_MandatoryLoopKeyword_5_7_0__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Reference2_SemicolonKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_2__.equals(syntax))
			emit_Reference2_SemicolonKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_2__(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Reference_SemicolonKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_2__.equals(syntax))
			emit_Reference_SemicolonKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_2__(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #19
Source File: ComplexReconstrTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_Parens_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_Parens_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Parens_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_Parens_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #20
Source File: InheritanceTest3LanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #21
Source File: CommentAssociationTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #22
Source File: AbstractCheckSyntacticSequencer.java    From dsl-devkit with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_Check___LeftCurlyBracketKeyword_8_0_0_RightCurlyBracketKeyword_8_0_2__q.equals(syntax))
			emit_Check___LeftCurlyBracketKeyword_8_0_0_RightCurlyBracketKeyword_8_0_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Check___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q.equals(syntax))
			emit_Check___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XAnnotation___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q.equals(syntax))
			emit_XAnnotation___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XBlockExpression_SemicolonKeyword_2_1_q.equals(syntax))
			emit_XBlockExpression_SemicolonKeyword_2_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XExpressionInClosure_SemicolonKeyword_1_1_q.equals(syntax))
			emit_XExpressionInClosure_SemicolonKeyword_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q.equals(syntax))
			emit_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XImportDeclaration_SemicolonKeyword_2_q.equals(syntax))
			emit_XImportDeclaration_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_XParenthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_XParenthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #23
Source File: EncodingTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #24
Source File: TransientValuesTestSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #25
Source File: ContentAssistContextTestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #26
Source File: AbstractValidSyntacticSequencer.java    From dsl-devkit with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #27
Source File: TwoContextsTestLanguageSyntacticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #28
Source File: ActionTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #29
Source File: EcoreFragmentTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
Example #30
Source File: EpatchTestLanguageSyntacticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}