Worked on ZString, MString and JString

This commit is contained in:
Brad Arant committed 2023-10-05 17:57:01 -07:00
1 parent b873bbf164
commit 8a9c1c3bd7
14 files changed
+146 -42

No files matched your search

+8 -2
View File
@@ -36,6 +36,8 @@ namespace coreutils {
if(locate(path)) {
if(ifNext("\""))
return getTokenExclude("\"");
// TODO: Handle numbers that are not in double quotes.
if(startsWith("[")) {
ZString temp = getContainer();
std::cout << temp << std::endl;
@@ -45,6 +47,7 @@ namespace coreutils {
}
void JString::operator=(ZString &value) {
std::cout << "operator=(ZString &)" << value << "\n";
}
JString& JString::operator=(const char *value) {
@@ -84,11 +87,14 @@ namespace coreutils {
if(ifNext(":")) {
if(label == path[0]) {
if(path.getList().size() == 1)
return true;
{
std::cout << "cursor: " << unparsed() << std::endl;
return true;
}
return locate(path[1]);
} if(startsWith("\"")) {
getContainer();;
} else if(startsWith("[")) {
} else if(startsWith("[")) {
getContainer();
} else {
throw coreutils::Exception("Unrecognized data type.");