changeset 179:478ef706906a ref20160224

sync
author cin
date Wed, 23 Mar 2016 19:52:08 +0300
parents d5c5db0335ee
children c32688129f14
files Implab/Automaton/AutomatonConst.cs Implab/Automaton/RegularExpressions/RegularDFA.cs Implab/Formats/JSON/JSONScanner.cs
diffstat 3 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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<TInput, TTag> : DFATable, ITaggedDFABuilder<TTag> {
+    public class RegularDFA<TInput, TTag> : DFATable, ITaggedDFABuilder<TTag> {
 
         readonly Dictionary<int,TTag[]> m_tags = new Dictionary<int, TTag[]>();
         readonly IAlphabet<TInput> m_alphabet;
 
-        public TaggedDFA(IAlphabet<TInput> alphabet) {
+        public RegularDFA(IAlphabet<TInput> alphabet) {
             Safe.ArgumentNotNull(alphabet, "aplhabet");
 
             m_alphabet = alphabet;
@@ -48,10 +48,10 @@
         /// Optimize the specified alphabet.
         /// </summary>
         /// <param name="alphabet">Пустой алфавит, который будет зполнен в процессе оптимизации.</param>
-        public TaggedDFA<TInput,TTag> Optimize(IAlphabetBuilder<TInput> alphabet) {
+        public RegularDFA<TInput,TTag> Optimize(IAlphabetBuilder<TInput> alphabet) {
             Safe.ArgumentNotNull(alphabet, "alphabet");
 
-            var dfa = new TaggedDFA<TInput, TTag>(alphabet);
+            var dfa = new RegularDFA<TInput, TTag>(alphabet);
 
             var states = new DummyAlphabet(StateCount);
             var alphaMap = new Dictionary<int,int>();
--- 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<JSONGrammar.TokenType> m_jsonContext = JSONGrammar.Instance.JsonDFA;
-        readonly ScannerContext<JSONGrammar.TokenType> m_stringContext = JSONGrammar.Instance.JsonStringDFA;
+        readonly ScannerContext<JSONGrammar.TokenType> m_jsonContext = JSONGrammar.Instance.JsonExpression;
+        readonly ScannerContext<JSONGrammar.TokenType> m_stringContext = JSONGrammar.Instance.JsonStringExpression;
 
 
         readonly TextScanner m_scanner;