# HG changeset patch # User cin # Date 1458751928 -10800 # Node ID 478ef706906aab6bbe5514f0637844974a47fdbb # Parent d5c5db0335ee6b92778df82f0340b28fa2060c14 sync diff -r d5c5db0335ee -r 478ef706906a Implab/Automaton/AutomatonConst.cs --- a/Implab/Automaton/AutomatonConst.cs Wed Mar 23 19:51:45 2016 +0300 +++ b/Implab/Automaton/AutomatonConst.cs Wed Mar 23 19:52:08 2016 +0300 @@ -1,6 +1,6 @@  namespace Implab.Automaton { - public static class DFAConst { + public static class AutomatonConst { public const int UNREACHABLE_STATE = -1; public const int UNCLASSIFIED_INPUT = 0; diff -r d5c5db0335ee -r 478ef706906a Implab/Automaton/RegularExpressions/RegularDFA.cs --- a/Implab/Automaton/RegularExpressions/RegularDFA.cs Wed Mar 23 19:51:45 2016 +0300 +++ b/Implab/Automaton/RegularExpressions/RegularDFA.cs Wed Mar 23 19:52:08 2016 +0300 @@ -2,12 +2,12 @@ using System.Linq; namespace Implab.Automaton.RegularExpressions { - public class TaggedDFA : DFATable, ITaggedDFABuilder { + public class RegularDFA : DFATable, ITaggedDFABuilder { readonly Dictionary m_tags = new Dictionary(); readonly IAlphabet m_alphabet; - public TaggedDFA(IAlphabet alphabet) { + public RegularDFA(IAlphabet alphabet) { Safe.ArgumentNotNull(alphabet, "aplhabet"); m_alphabet = alphabet; @@ -48,10 +48,10 @@ /// Optimize the specified alphabet. /// /// Пустой алфавит, который будет зполнен в процессе оптимизации. - public TaggedDFA Optimize(IAlphabetBuilder alphabet) { + public RegularDFA Optimize(IAlphabetBuilder alphabet) { Safe.ArgumentNotNull(alphabet, "alphabet"); - var dfa = new TaggedDFA(alphabet); + var dfa = new RegularDFA(alphabet); var states = new DummyAlphabet(StateCount); var alphaMap = new Dictionary(); diff -r d5c5db0335ee -r 478ef706906a Implab/Formats/JSON/JSONScanner.cs --- a/Implab/Formats/JSON/JSONScanner.cs Wed Mar 23 19:51:45 2016 +0300 +++ b/Implab/Formats/JSON/JSONScanner.cs Wed Mar 23 19:52:08 2016 +0300 @@ -12,8 +12,8 @@ public class JSONScanner : Disposable { readonly StringBuilder m_builder = new StringBuilder(); - readonly ScannerContext m_jsonContext = JSONGrammar.Instance.JsonDFA; - readonly ScannerContext m_stringContext = JSONGrammar.Instance.JsonStringDFA; + readonly ScannerContext m_jsonContext = JSONGrammar.Instance.JsonExpression; + readonly ScannerContext m_stringContext = JSONGrammar.Instance.JsonStringExpression; readonly TextScanner m_scanner;