<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/walk/walk.go
Commit message (Collapse)AuthorAgeFilesLines
* Replaces the workspace with 3 distinct registers: path, value and xregCharlie Stanton2023-04-191-0/+31
| | | | | | workspace contained a list of WalkItems, pairs of paths and values. The new system can still hold a list of values but only one path, which is in itself a list of values. The X register is miscellaneous. All 3 hold a list of values (which are JSON tokens)
* Adds a dummy method to atom so the compiler checks that only valid atoms are ↵Charlie Stanton2023-04-191-5/+21
| | | | allowed
* Adds casting strings to numbers in the sum operatorCharlie Stanton2023-04-191-18/+73
|
* Creates functions for compounding atoms back into values in the walk module ↵Charlie Stanton2023-04-181-0/+79
| | | | and uses them in subex/main
* Fixes strings being wrapped in quotes twice when outputtingCharlie Stanton2023-03-151-2/+2
|
* Renames walk.Datum to walk.AtomCharlie Stanton2023-03-051-9/+9
|
* Replace append with walk.ConcatData in many places to fix bug to do with ↵Charlie Stanton2023-02-261-0/+4
| | | | | | semantics of append When doing append, be very careful as it does make changes in place to the underlying array of the slice which may affect other slices
* Converts subex output back into WalkValues and prints for easier debuggingCharlie Stanton2023-02-261-0/+32
|
* Modify subex to take JSON split into "data"Charlie Stanton2023-02-221-2/+29
| | | | | | Currently no way to reassemble the data on the other side Much of the potential data cannot be interacted with meaningfully, only the string functionality is implemented Should rename data to something else
* Move JSON serialising, deserialising and walking code into a separate packageCharlie Stanton2023-02-191-0/+316