CSharpUtils.Templates.TemplateHandler.HandleLevel_Ternary C# (CSharp) 메소드

HandleLevel_Ternary() 공개 메소드

public HandleLevel_Ternary ( ) : ParserNode
리턴 ParserNode
		public ParserNode HandleLevel_Ternary()
		{
			return _HandleLevel_Op(
				HandleLevel_Or,
				new string[] { "?" },
				(ParserNode ConditionNode, ParserNode TrueNode, String Operator) => {
					Tokens.ExpectValueAndNext(":");
					ParserNode FalseNode = HandleLevel_Sum();
					return new ParserNodeTernaryOperation(ConditionNode, TrueNode, FalseNode, Operator);
				}
			);
		}