diff Implab/Formats/JSON/JSONParser.cs @ 172:92d5278d1b10 ref20160224

Working on text scanner
author cin
date Mon, 14 Mar 2016 01:19:38 +0300
parents e227e78d72e4
children d5c5db0335ee
line wrap: on
line diff
--- a/Implab/Formats/JSON/JSONParser.cs	Thu Mar 10 01:19:33 2016 +0300
+++ b/Implab/Formats/JSON/JSONParser.cs	Mon Mar 14 01:19:38 2016 +0300
@@ -86,9 +86,9 @@
             return Token<object>.New(input.Select(t => _alphabet.Translate(t)).ToArray());
         }
 
-        static RegularDFADefinition<JsonTokenType,object> CreateDFA(Token<object> expr) {
-            var builder = new RegularDFABuilder<object>();
-            var dfa = new RegularDFADefinition<JsonTokenType,object>(_alphabet);
+        static RegularDFA<JsonTokenType,object> CreateDFA(Token<object> expr) {
+            var builder = new RegularExpressionVisitor<object>();
+            var dfa = new RegularDFA<JsonTokenType,object>(_alphabet);
 
             expr.Accept(builder);