예제 #1
0
        internal override ExitType Eval(Tokenizer tokenizer = null, WordListBuilder wlb = null)
        {
            foreach (var evaluable in _subwords)
            {
                //var et = evaluable.Eval(tokenizer);
                var et = evaluable.Eval(tokenizer);

                if (et != ExitType.Okay)
                {
                    if (_isDefined && et == ExitType.Exit)
                    {
                        return(ExitType.Okay);
                    }
                    return(et);
                }
            }

            return(ExitType.Okay);
        }
예제 #2
0
 private static void begin(Tokenizer tokenizer, WordListBuilder wlb)
 {
     BeginAction.Begin(tokenizer, wlb);
 }
예제 #3
0
 private static void questDofn(Tokenizer tokenizer, WordListBuilder wlb)
 {
     DoAction.Do(tokenizer, wlb, true);
 }
예제 #4
0
 private static void dofn(Tokenizer tokenizer, WordListBuilder wlb)
 {
     DoAction.Do(tokenizer, wlb, false);
 }
예제 #5
0
 private static void iffn(Tokenizer tokenizer, WordListBuilder wlb)
 {
     IfAction.If(tokenizer, wlb);
 }
예제 #6
0
 private static void netType(Tokenizer tokenizer, WordListBuilder wlb)
 {
     FStringAction.FString(tokenizer, wlb, StringType.Type);
 }
예제 #7
0
 private static void stackString(Tokenizer tokenizer, WordListBuilder wlb)
 {
     FStringAction.FString(tokenizer, wlb, StringType.Stack);
 }
예제 #8
0
 private static void countedString(Tokenizer tokenizer, WordListBuilder wlb)
 {
     FStringAction.FString(tokenizer, wlb);
 }