Skip to content

Commit 14f0d7b

Browse files
committed
feat: Add JSON parsing benchmark and include error reporting utility in the build script.
1 parent 7821f6e commit 14f0d7b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

benchmarks/macro/json_bench.prox

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ class JsonParser {
3434
func skipWhitespace() {
3535
while (this.pos < this.len) {
3636
let c = this.peek();
37-
// Simplified for debugging
38-
if (c == " ") {
37+
if (c == " " || c == "\n" || c == "\t") {
3938
this.consume();
4039
} else {
4140
return;

compile.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ clang -o proxpl.exe -Iinclude -Isrc -D_CRT_SECURE_NO_WARNINGS ^
2222
src/runtime/value.c ^
2323
src/runtime/vm.c ^
2424
src/runtime/vm_helpers.c ^
25+
src/utils/error_report.c ^
2526
src/stdlib/collections_native.c ^
2627
src/stdlib/convert_native.c ^
2728
src/stdlib/core_native.c ^

0 commit comments

Comments
 (0)