コード例 #1
0
ファイル: Lexer.cs プロジェクト: JacobMisirian/LexerBuilder
 public Lexer(LexerConfiguration configuration)
 {
     bindings = configuration.BindingsDictionary;
     scanFrom = configuration.ScanFromDictionary;
     ignoreChar = configuration.IgnoreCharDictionary;
     ignoreFrom = configuration.IgnoreFromDictionary;
 }
コード例 #2
0
 public Lexer(LexerConfiguration configuration)
 {
     bindings   = configuration.BindingsDictionary;
     scanFrom   = configuration.ScanFromDictionary;
     ignoreChar = configuration.IgnoreCharDictionary;
     ignoreFrom = configuration.IgnoreFromDictionary;
 }
コード例 #3
0
        public LexerConfiguration ToConfiguration()
        {
            LexerConfiguration ret = new LexerConfiguration();

            ret.ScanFromDictionary   = scanFrom;
            ret.IgnoreFromDictionary = ignoreFrom;
            ret.BindingsDictionary   = bindings;
            ret.IgnoreCharDictionary = ignoreChar;

            return(ret);
        }
コード例 #4
0
ファイル: Lexer.cs プロジェクト: JacobMisirian/LexerBuilder
        public LexerConfiguration ToConfiguration()
        {
            LexerConfiguration ret = new LexerConfiguration();
            ret.ScanFromDictionary = scanFrom;
            ret.IgnoreFromDictionary = ignoreFrom;
            ret.BindingsDictionary = bindings;
            ret.IgnoreCharDictionary = ignoreChar;

            return ret;
        }