コード例 #1
0
ファイル: Calc.cs プロジェクト: comet-star-jp/csharp
    public Parser(string text)
    {
        lex  = new Lex <INode>(text);
        Root = exp();

        if (!lex.Eof())
        {
            throw new FormatException("parse error token=" + lex.Token() + " " + lex.Show());
        }
    }