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:
2012-07-12 15:01:15 +00:00
parent 600d0fc34a
commit 2af6c28a54
7 changed files with 1575 additions and 6 deletions

View File

@@ -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();