コード例 #1
0
        public Type Visit(BoolStatement boolStatement, FunctionGeneratorEnvironment arg)
        {
            var val = (boolStatement.value == true) ? 1 : 0;

            Program.Emit(T42Instruction.PUSHBOOL(val));

            return(new BoolType());
        }
コード例 #2
0
ファイル: Evaluator.cs プロジェクト: j-juric/Compilers2
 public IValue Visit(BoolStatement boolStatement)
 {
     return(new BoolValue(boolStatement.value));// new PointerValue(0); ///??????????????????????????????
 }
コード例 #3
0
ファイル: Desugar.cs プロジェクト: j-juric/Compilers2
 public Statement Visit(BoolStatement boolStatement)
 {
     return(null);
 }
コード例 #4
0
ファイル: FreeVariables.cs プロジェクト: j-juric/Compilers2
 public Void Visit(BoolStatement boolStatement, SortedSet <string> free)
 {
     return(null);
 }
コード例 #5
0
ファイル: TypeChecker.cs プロジェクト: j-juric/Compilers2
 public Type Visit(BoolStatement boolStatement)
 {
     return(new BoolType());
 }