eJson initial import
This commit is contained in:
33
json/scanner/json_tokens.e
Normal file
33
json/scanner/json_tokens.e
Normal file
@@ -0,0 +1,33 @@
|
||||
indexing
|
||||
description: "Objects that ..."
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
JSON_TOKENS
|
||||
|
||||
feature -- Access
|
||||
J_OBJECT_OPEN:CHARACTER is '{'
|
||||
J_ARRAY_OPEN:CHARACTER is '['
|
||||
J_OBJECT_CLOSE:CHARACTER is '}'
|
||||
J_ARRAY_CLOSE:CHARACTER is ']'
|
||||
|
||||
J_STRING:CHARACTER is '"'
|
||||
J_PLUS:CHARACTER is '+'
|
||||
J_MINUS:CHARACTER is '-'
|
||||
J_DOT:CHARACTER is '.'
|
||||
|
||||
open_tokens:ARRAY[CHARACTER] is
|
||||
-- Characters wich open a type
|
||||
once
|
||||
Result:=<<J_OBJECT_OPEN,J_ARRAY_OPEN,J_STRING,J_PLUS,J_MINUS,J_DOT>>
|
||||
end
|
||||
|
||||
close_tokens:ARRAY[CHARACTER] is
|
||||
-- Characters wich close a type
|
||||
once
|
||||
Result:=<<J_OBJECT_CLOSE,J_ARRAY_CLOSE,J_STRING >>
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user