Skip to content

Commit

Permalink
another example
Browse files Browse the repository at this point in the history
  • Loading branch information
Autoparallel committed Aug 14, 2024
1 parent 7294dd5 commit 2270ac9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions circuits.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@
5
]
},
"value_array_object_array": {
"file": "extract",
"template": "Extract",
"params": [
31,
6
]
},
"value_object": {
"file": "extract",
"template": "Extract",
Expand Down
1 change: 1 addition & 0 deletions json_examples/test/value_array_object_array.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"a":[{"b":5},{"c":[0,1,"a"]}]}
6 changes: 6 additions & 0 deletions notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
- [ ] Boolean
- [ ] Null

Parsing null and bool need to do some kind of look ahead parsing. To handle numbers properly we also probably need that actually since we need to look ahead to where we get white space.
Need to look ahead for `true` and `false` for example to ensure we get a full match, or we fail or something. Lookaehad might be overkill, but yeah.

#### Numbers
Numbers can have `e` and decimal `.` in them. Riperoni.

### string escape
shouldn't be too hard, just add one more state variable `escaping` that is only enabled when parsing a string and can only be toggled -- next state will always have to set back to 0.

Expand Down

0 comments on commit 2270ac9

Please sign in to comment.