Mercurial > pub > ImplabNet
comparison Implab/Parsing/Scanner.cs @ 79:05e6468f066f v2
sync
author | cin |
---|---|
date | Mon, 22 Sep 2014 18:20:49 +0400 |
parents | 10c7337d29e7 |
children | 240aa6994018 |
comparison
equal
deleted
inserted
replaced
78:05f74c39a143 | 79:05e6468f066f |
---|---|
39 TextReader m_reader; | 39 TextReader m_reader; |
40 bool m_disposeReader; | 40 bool m_disposeReader; |
41 int m_chunkSize = 1024; // 1k | 41 int m_chunkSize = 1024; // 1k |
42 int m_limit = 10 * 1024 * 1024; // 10Mb | 42 int m_limit = 10 * 1024 * 1024; // 10Mb |
43 | 43 |
44 public Scanner(CDFADefinition definition) { | 44 protected Scanner(CDFADefinition definition) { |
45 Safe.ArgumentNotNull(definition, "definition"); | 45 Safe.ArgumentNotNull(definition, "definition"); |
46 | 46 |
47 m_states = definition.States; | 47 m_states = definition.States; |
48 m_alphabetMap = definition.Alphabet.GetTranslationMap(); | 48 m_alphabetMap = definition.Alphabet.GetTranslationMap(); |
49 | 49 |