public Lexer(LexerConfiguration configuration) { bindings = configuration.BindingsDictionary; scanFrom = configuration.ScanFromDictionary; ignoreChar = configuration.IgnoreCharDictionary; ignoreFrom = configuration.IgnoreFromDictionary; }
public LexerConfiguration ToConfiguration() { LexerConfiguration ret = new LexerConfiguration(); ret.ScanFromDictionary = scanFrom; ret.IgnoreFromDictionary = ignoreFrom; ret.BindingsDictionary = bindings; ret.IgnoreCharDictionary = ignoreChar; return(ret); }
public LexerConfiguration ToConfiguration() { LexerConfiguration ret = new LexerConfiguration(); ret.ScanFromDictionary = scanFrom; ret.IgnoreFromDictionary = ignoreFrom; ret.BindingsDictionary = bindings; ret.IgnoreCharDictionary = ignoreChar; return ret; }