Example #1
0
        public override AST.RuleTree VisitSingleOutcome([NotNull] WordLangParser.SingleOutcomeContext context)
        {
            var outcome = new AST.Outcome();

            //outcome.Action = new AST.FieldString()
            //{
            //    Value = context.text().NAME().CombineTokens(),
            //    StartIndex = context.text().NAME().First().Symbol.StartIndex,
            //    StopIndex = context.text().NAME().Last().Symbol.StopIndex
            //};
            return(outcome);
        }
Example #2
0
 public bool Equals(Outcome other)
 {
     return(other != null &&
            other.Action.Equals(Action));
 }