public PftConditionalStatement(PftParser.ConditionalStatementContext node)
     : base(node)
 {
     PftParser.ConditionContext context = node.condition();
     Condition     = PftCondition.DispatchContext(context);
     ThenStatement = new PftStatement(node.thenBranch);
     if (node.elseBranch != null)
     {
         ElseStatement = new PftStatement(node.elseBranch);
     }
 }
Exemple #2
0
        public PftFormatExit(PftParser.FormatExitContext node)
            : base(node)
        {
            Name = node.FORMATEXIT().GetText().Substring(1).ToLower();

            switch (Name)
            {
            case "umarci":
                break;

            case "unifor":
                break;

            case "uf":
                Name = "unifor";
                break;

            default:
                throw new ArgumentException();
            }

            Statement = new PftStatement(node.statement());
        }
Exemple #3
0
 public PftError(PftParser.ErrorContext node)
     : base(node)
 {
     Statement = new PftStatement(node.statement());
 }
Exemple #4
0
 public PftTrace(PftParser.TraceContext node)
     : base(node)
 {
     Statement = new PftStatement(node.statement());
 }
Exemple #5
0
 public PftFatal(PftParser.FatalContext node)
     : base(node)
 {
     Statement = new PftStatement(node.statement());
 }
Exemple #6
0
 public PftDebug(PftParser.DebugContext node)
     : base(node)
 {
     Statement = new PftStatement(node.statement());
 }
Exemple #7
0
 public PftWarning(PftParser.WarningContext node)
     : base(node)
 {
     Statement = new PftStatement(node.statement());
 }