mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-21 23:03:44 +01:00
JSON parser: Add explanatory RegEx
This commit is contained in:
parent
cb15345e13
commit
2c5e2e1e5c
2
json.lua
2
json.lua
@ -39,7 +39,7 @@ local decoding_escapes = {
|
||||
|
||||
-- Set up a DFA for number syntax validations
|
||||
local number_dfa
|
||||
do
|
||||
do -- as a RegEx: (0|(1-9)(0-9)*)[.(0-9)+[(e|E)[+|-](0-9)+]]; does not need to handle the first sign
|
||||
-- TODO proper DFA utilities
|
||||
local function set_transitions(state, transitions)
|
||||
for chars, next_state in pairs(transitions) do
|
||||
|
Loading…
Reference in New Issue
Block a user