added: JSONToSpaceParser -- a parser for JSON format to Space structure
added: SpaceToJSON -- a serializer from Space structure to JSON (not finished yet) git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@427 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -212,6 +212,10 @@ void SpaceParser::Parse()
|
||||
// last closing ')' characters are missing (closing a space)
|
||||
status = syntax_error;
|
||||
}
|
||||
|
||||
token.clear();
|
||||
key.clear();
|
||||
value.clear();
|
||||
}
|
||||
|
||||
|
||||
@@ -498,7 +502,7 @@ void SpaceParser::ReadValue()
|
||||
value.clear();
|
||||
SkipWhite();
|
||||
|
||||
if( lastc == '(' )
|
||||
if( lastc == list_start )
|
||||
ReadValueList();
|
||||
else
|
||||
ReadValueSingle();
|
||||
|
Reference in New Issue
Block a user