예제 #1
0
 public void GenerateStatement(TextWriter writer, FxStatement statement)
 {
     if (statement is FxCall call)
     {
         GenerateCall(writer, call);
     }
     if (statement is FxConditional conditional)
     {
         GenerateConditional(writer, conditional);
     }
     if (statement is FxReturn ret)
     {
         GenerateReturn(writer, ret);
     }
 }
예제 #2
0
파일: Ast.cs 프로젝트: kcwalina/langbuilder
 public FxConditional(ReadOnlyMemory <char> name, FxExpression expression, FxStatement statement)
 {
     this.name       = name;
     this.expression = expression;
     this.statement  = statement;
 }