Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
 public void EnterRelation(BASICParser.RelationContext context)
 {
 }
Esempio n. 3
0
 /// <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)
 {
 }