Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add " shorthand for string destructure | Charlie Stanton | 2024-03-31 | 4 | -17/+114 |
| | |||||
* | Add map destructure | Charlie Stanton | 2024-03-30 | 5 | -0/+108 |
| | |||||
* | Add array value destructure | Charlie Stanton | 2024-03-30 | 5 | -35/+171 |
| | |||||
* | Add none structures and allow mismatched destructuring | Charlie Stanton | 2024-03-30 | 4 | -99/+278 |
| | |||||
* | Add basic array manipulation | Charlie Stanton | 2024-03-29 | 3 | -4/+129 |
| | |||||
* | Completely remove the path space | Charlie Stanton | 2024-03-29 | 9 | -890/+702 |
| | | | | The new design uses deeply nested values in the value space instead. | ||||
* | Adds an incredibly simple equality operator | Charlie Stanton | 2023-07-21 | 3 | -1/+32 |
| | |||||
* | Reimplements inserting basic values using subexes | Charlie Stanton | 2023-07-21 | 3 | -75/+105 |
| | |||||
* | Fixes JSONWriter to work with implicit data structures | Charlie Stanton | 2023-07-21 | 1 | -0/+1 |
| | |||||
* | Removes lots of old atom based code from walk | Charlie Stanton | 2023-07-19 | 1 | -11/+0 |
| | |||||
* | Huge refactor to a more value based system, doing away with terminals. Also ↵ | Charlie Stanton | 2023-07-19 | 9 | -507/+1254 |
| | | | | introduces unit testing | ||||
* | Update subex , literal to no longer include terminals | Charlie Stanton | 2023-04-26 | 2 | -7/+7 |
| | |||||
* | Improves RunTransducer by reusing state slices for states and newStates | Charlie Stanton | 2023-04-25 | 1 | -1/+4 |
| | |||||
* | Improves performance of pruneStates by modifying states in place | Charlie Stanton | 2023-04-25 | 1 | -5/+7 |
| | |||||
* | Refines storing and loading to use ids generated when the subex is compiled ↵ | Charlie Stanton | 2023-04-25 | 4 | -67/+117 |
| | | | | instead of the runes | ||||
* | Simplify the OutputStack, improves performance by simplifying from an ↵ | Charlie Stanton | 2023-04-24 | 1 | -25/+21 |
| | | | | interface to a single struct | ||||
* | Adds a check to end subex execution early if no viable branches remain | Charlie Stanton | 2023-04-24 | 1 | -0/+3 |
| | |||||
* | Remove redundant subex/main.main function | Charlie Stanton | 2023-04-24 | 1 | -49/+0 |
| | |||||
* | Replaces the interfaces implementation of Atom with a tagged union based ↵ | Charlie Stanton | 2023-04-21 | 4 | -47/+42 |
| | | | | implementation | ||||
* | Changes the implementation of Atomise and Compound to no longer use goroutines | Charlie Stanton | 2023-04-21 | 2 | -9/+14 |
| | | | | This results in a massive performance boost, ~4x speedup | ||||
* | Add :xyz: replacement syntax that removes whatever is before it and inserts ↵ | Charlie Stanton | 2023-04-21 | 3 | -5/+41 |
| | | | | whatever is inside it | ||||
* | Adds String methods to all SubexASTs for debugging purposes | Charlie Stanton | 2023-04-21 | 1 | -0/+51 |
| | |||||
* | Radically changes precedences so concatenation is now the strongest | Charlie Stanton | 2023-04-21 | 1 | -13/+13 |
| | | | | We'll see if this sticks | ||||
* | Add ^xyz^ as a shorthand for ="xyz"= in subex | Charlie Stanton | 2023-04-21 | 1 | -7/+18 |
| | |||||
* | Add subex syntax to copy across booleans, numbers, strings and values | Charlie Stanton | 2023-04-21 | 3 | -1/+137 |
| | |||||
* | Properly exports all SubexASTs | Charlie Stanton | 2023-04-20 | 2 | -59/+59 |
| | |||||
* | Add ~xyz~ shorthand for =`xyz`= | Charlie Stanton | 2023-04-20 | 1 | -1/+10 |
| | |||||
* | Fix bug that would crash if given an empty subex | Charlie Stanton | 2023-04-20 | 1 | -1/+5 |
| | |||||
* | Remove the @, ~ and # syntax for terminal literals | Charlie Stanton | 2023-04-20 | 1 | -30/+0 |
| | |||||
* | Replaces the start and end terminals of strings with a single terminal, with ↵ | Charlie Stanton | 2023-04-20 | 1 | -1/+11 |
| | | | | " as a literal for it | ||||
* | Change output syntax to =xyz= instead of "xyz" | Charlie Stanton | 2023-04-20 | 1 | -3/+3 |
| | | | | This frees up " to be used for a string terminal literal | ||||
* | Adds non-string literal syntax to subex | Charlie Stanton | 2023-04-20 | 2 | -0/+89 |
| | |||||
* | Adds parsing substitute commands, though executing them currently does nothing | Charlie Stanton | 2023-04-19 | 1 | -0/+8 |
| | |||||
* | Changes the parsing API for subex to be more suitable to being part of a ↵ | Charlie Stanton | 2023-04-19 | 3 | -54/+60 |
| | | | | larger program | ||||
* | Adds a dummy method to atom so the compiler checks that only valid atoms are ↵ | Charlie Stanton | 2023-04-19 | 1 | -6/+6 |
| | | | | allowed | ||||
* | Adds the NOT operator | Charlie Stanton | 2023-04-19 | 3 | -0/+41 |
| | |||||
* | Adds the reciprocal operator | Charlie Stanton | 2023-04-19 | 3 | -0/+51 |
| | |||||
* | Fixes internal error messages for arithmetic functions | Charlie Stanton | 2023-04-19 | 1 | -4/+4 |
| | |||||
* | Adds the negate operator | Charlie Stanton | 2023-04-19 | 3 | -0/+49 |
| | | | | Negates all of the numbers produced by its content subex | ||||
* | Combines sum and product into an arithmetic state that contains a function ↵ | Charlie Stanton | 2023-04-19 | 3 | -115/+101 |
| | | | | | | for it's operation Creates arithmetic.go which will house all of these functions | ||||
* | Adds product/and operator | Charlie Stanton | 2023-04-19 | 3 | -22/+87 |
| | |||||
* | Adjusts the sum operator to act as boolean OR when all inputs are booleans | Charlie Stanton | 2023-04-19 | 1 | -5/+15 |
| | |||||
* | Replaces a few instances of SubexStates with pointers as they should be | Charlie Stanton | 2023-04-19 | 2 | -2/+2 |
| | | | | This potentially avoids bugs/errors and also improves the performance of pruning | ||||
* | Changes parser so the storing operator is postfix instead of prefix | Charlie Stanton | 2023-04-19 | 1 | -14/+10 |
| | |||||
* | Replaces the parent/child implementation for operators like store and sum ↵ | Charlie Stanton | 2023-04-19 | 3 | -168/+119 |
| | | | | | | | | | with an output stack Previously a store state was a parent of another state machine that it would run inside of itself in order to capture the output to be stored. This was limited as the greedyness of the child would not be transferred to the parent. The new implementation gives states more control over the output state and turns it into a stack. By pushing to the stack before the child and popping afterwards, all of the child's output can be retrieved while the child is very much part of the complete machine. | ||||
* | Adds casting strings to numbers in the sum operator | Charlie Stanton | 2023-04-19 | 2 | -13/+36 |
| | |||||
* | Creates functions for compounding atoms back into values in the walk module ↵ | Charlie Stanton | 2023-04-18 | 1 | -73/+19 |
| | | | | and uses them in subex/main | ||||
* | Refactors store and sum states to use the new SubexParentState for states ↵ | Charlie Stanton | 2023-04-18 | 1 | -53/+104 |
| | | | | that run machines within themselves | ||||
* | Fixes bug where stores wouldn't work inside other stores sometimes | Charlie Stanton | 2023-04-18 | 1 | -1/+1 |
| | | | | Something like $a($b(test)..."$b") wouldn't work as expected, this works now | ||||
* | Adds the sum operator | Charlie Stanton | 2023-04-18 | 3 | -9/+78 |
| | | | | Currently doesn't parse strings as each atom is considered independantly. Instead individual characters in strings can be cast |