コード例 #1
0
ファイル: BNF.cs プロジェクト: twpol/msts-tools
 public BnfRule(Bnf bnf, ReferenceOperator symbol, Operator expression)
 {
     Bnf           = bnf;
     Symbol        = symbol;
     Expression    = expression;
     ExpressionFsm = new Fsm(ExpandReferences(expression));
 }
コード例 #2
0
ファイル: BNF.cs プロジェクト: twpol/msts-tools
 public BnfState(Bnf bnf, string root)
 {
     this.Bnf         = bnf;
     Rules            = new Stack <KeyValuePair <BnfRule, FsmState> >();
     IsEnterBlockTime = false;
     if (Bnf.Definitions.ContainsKey(root))
     {
         Rules.Push(new KeyValuePair <BnfRule, FsmState>(Bnf.Definitions[root], Bnf.Definitions[root].ExpressionFsm.Root));
     }
     else
     {
         Rules.Push(new KeyValuePair <BnfRule, FsmState>(Bnf.Productions[root], Bnf.Productions[root].ExpressionFsm.Root));
     }
 }
コード例 #3
0
ファイル: BNF.cs プロジェクト: twpol/msts-tools
 public BnfState(Bnf bnf)
     : this(bnf, "FILE")
 {
 }
コード例 #4
0
ファイル: BNF.cs プロジェクト: twpol/msts-tools
 public BnfProduction(Bnf bnf, ReferenceOperator symbol, Operator expression) : base(bnf, symbol, expression)
 {
 }