コード例 #1
0
ファイル: WordList.cs プロジェクト: darrellp/NetForth
        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);
 }