コード例 #1
0
 public override GamaValueRef VisitExprLiteralBoolean([NotNull] GamaParser.ExprLiteralBooleanContext context)
 {
     return(new GamaValueRef(InstanceTypes.Bool, LLVMValueRef.CreateConstInt(InstanceTypes.Bool.UnderlyingType, context.GetText() == "true" ? 1ul : 0ul), false));
 }
コード例 #2
0
ファイル: GamaBaseVisitor.cs プロジェクト: jangofett4/Gama
 /// <summary>
 /// Visit a parse tree produced by the <c>ExprLiteralBoolean</c>
 /// labeled alternative in <see cref="GamaParser.expr"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitExprLiteralBoolean([NotNull] GamaParser.ExprLiteralBooleanContext context)
 {
     return(VisitChildren(context));
 }
コード例 #3
0
ファイル: GamaBaseListener.cs プロジェクト: jangofett4/Gama
 /// <summary>
 /// Exit a parse tree produced by the <c>ExprLiteralBoolean</c>
 /// labeled alternative in <see cref="GamaParser.expr"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitExprLiteralBoolean([NotNull] GamaParser.ExprLiteralBooleanContext context)
 {
 }