-# Lexer generated by nitcc for the grammar jsonimport nitcc_runtime
+# Lexer generated by nitcc for the grammar json
+module json_lexer is no_warning "missing-doc"
+import nitcc_runtime
import json_parser
class Lexer_json
super Lexer
private fun dfastate_28: DFAState28 do return once new DFAState28
private fun dfastate_29: DFAState29 do return once new DFAState29
private fun dfastate_30: DFAState30 do return once new DFAState30
+ private fun dfastate_31: DFAState31 do return once new DFAState31
+ private fun dfastate_32: DFAState32 do return once new DFAState32
+ private fun dfastate_33: DFAState33 do return once new DFAState33
+ private fun dfastate_34: DFAState34 do return once new DFAState34
end
class MyNToken
super NToken
end
-class DFAState0
+private class DFAState0
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState1
+private class DFAState1
super DFAState
redef fun is_accept do return true
redef fun make_token(position, text) do
return null
end
end
-class DFAState2
+private class DFAState2
super DFAState
redef fun trans(char) do
var c = char.ascii
return dfastate_2
end
end
-class DFAState3
+private class DFAState3
super DFAState
redef fun is_accept do return true
redef fun make_token(position, text) do
return t
end
end
-class DFAState4
+private class DFAState4
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState5
+private class DFAState5
super DFAState
redef fun is_accept do return true
redef fun make_token(position, text) do
return null
end
end
-class DFAState6
+private class DFAState6
super DFAState
redef fun is_accept do return true
redef fun make_token(position, text) do
return t
end
end
-class DFAState7
+private class DFAState7
super DFAState
redef fun is_accept do return true
redef fun make_token(position, text) do
return t
end
end
-class DFAState8
+private class DFAState8
super DFAState
redef fun is_accept do return true
redef fun make_token(position, text) do
return t
end
end
-class DFAState9
+private class DFAState9
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState10
+private class DFAState10
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState11
+private class DFAState11
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState12
+private class DFAState12
super DFAState
redef fun is_accept do return true
redef fun make_token(position, text) do
return t
end
end
-class DFAState13
+private class DFAState13
super DFAState
redef fun is_accept do return true
redef fun make_token(position, text) do
return t
end
end
-class DFAState14
+private class DFAState14
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState15
+private class DFAState15
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState16
+private class DFAState16
super DFAState
redef fun is_accept do return true
redef fun make_token(position, text) do
return t
end
end
-class DFAState17
+private class DFAState17
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState18
+private class DFAState18
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState19
+private class DFAState19
super DFAState
redef fun is_accept do return true
redef fun make_token(position, text) do
return t
end
end
-class DFAState20
+private class DFAState20
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState21
+private class DFAState21
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState22
+private class DFAState22
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState23
+private class DFAState23
super DFAState
redef fun is_accept do return true
redef fun make_token(position, text) do
return t
end
end
-class DFAState24
+private class DFAState24
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState25
+private class DFAState25
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState26
+private class DFAState26
super DFAState
redef fun trans(char) do
var c = char.ascii
return null
end
end
-class DFAState27
+private class DFAState27
super DFAState
redef fun is_accept do return true
redef fun make_token(position, text) do
return null
end
end
-class DFAState28
+private class DFAState28
super DFAState
redef fun is_accept do return true
redef fun make_token(position, text) do
return null
end
end
-class DFAState29
+private class DFAState29
super DFAState
redef fun is_accept do return true
redef fun make_token(position, text) do
return t
end
end
-class DFAState30
+private class DFAState30
super DFAState
redef fun trans(char) do
var c = char.ascii
- return dfastate_2
+ if c <= 33 then return null
+ if c <= 34 then return dfastate_2
+ if c <= 46 then return null
+ if c <= 47 then return dfastate_2
+ if c <= 91 then return null
+ if c <= 92 then return dfastate_2
+ if c <= 97 then return null
+ if c <= 98 then return dfastate_2
+ if c <= 101 then return null
+ if c <= 102 then return dfastate_2
+ if c <= 109 then return null
+ if c <= 110 then return dfastate_2
+ if c <= 113 then return null
+ if c <= 114 then return dfastate_2
+ if c <= 115 then return null
+ if c <= 116 then return dfastate_2
+ if c <= 117 then return dfastate_31
+ return null
+ end
+end
+private class DFAState31
+ super DFAState
+ redef fun trans(char) do
+ var c = char.ascii
+ if c <= 47 then return null
+ if c <= 57 then return dfastate_32
+ if c <= 64 then return null
+ if c <= 90 then return dfastate_32
+ if c <= 96 then return null
+ if c <= 122 then return dfastate_32
+ return null
+ end
+end
+private class DFAState32
+ super DFAState
+ redef fun trans(char) do
+ var c = char.ascii
+ if c <= 47 then return null
+ if c <= 57 then return dfastate_33
+ if c <= 64 then return null
+ if c <= 90 then return dfastate_33
+ if c <= 96 then return null
+ if c <= 122 then return dfastate_33
+ return null
+ end
+end
+private class DFAState33
+ super DFAState
+ redef fun trans(char) do
+ var c = char.ascii
+ if c <= 47 then return null
+ if c <= 57 then return dfastate_34
+ if c <= 64 then return null
+ if c <= 90 then return dfastate_34
+ if c <= 96 then return null
+ if c <= 122 then return dfastate_34
+ return null
+ end
+end
+private class DFAState34
+ super DFAState
+ redef fun trans(char) do
+ var c = char.ascii
+ if c <= 47 then return null
+ if c <= 57 then return dfastate_2
+ if c <= 64 then return null
+ if c <= 90 then return dfastate_2
+ if c <= 96 then return null
+ if c <= 122 then return dfastate_2
+ return null
end
end