Return integer result code from Parser.parse()

This commit is contained in:
josh committed 2023-07-08 08:52:21 -04:00
1 parent c88338698a
commit 0232b204c6
12 files changed
+46 -29

No files matched your search

+2 -2
View File
@@ -10,11 +10,11 @@ unittest
{
string input = "abcdef";
auto parser = new Testparser.Parser(input);
assert(parser.parse() == true);
assert(parser.parse() == Testparser.Parser.P_SUCCESS);
writeln("pass1");
input = "abcabcdef";
parser = new Testparser.Parser(input);
assert(parser.parse() == true);
assert(parser.parse() == Testparser.Parser.P_SUCCESS);
writeln("pass2");
}