public void ExitRelation(BASICParser.RelationContext context) { switch (context.GetText()) { case "=": currentRelation = RelationalExpression.Relation.EQUAL; break; case "!=": currentRelation = RelationalExpression.Relation.NOTEQUAL; break; case ">": currentRelation = RelationalExpression.Relation.GREATERTHAN; break; case "<": currentRelation = RelationalExpression.Relation.LESSTHAN; break; case "<=": currentRelation = RelationalExpression.Relation.NOTGREATER; break; case ">=": currentRelation = RelationalExpression.Relation.NOTLESS; break; } }
public void EnterRelation(BASICParser.RelationContext context) { }
/// <summary> /// Exit a parse tree produced by <see cref="BASICParser.relation"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitRelation([NotNull] BASICParser.RelationContext context) { }