<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/main/parse.go
Commit message (Collapse)AuthorAgeFilesLines
* Huge refactor to a more value based system, doing away with terminals. Also ↵Charlie Stanton2023-07-191-51/+3
| | | | introduces unit testing
* Add labels and branches with the : and b commandsCharlie Stanton2023-04-261-2/+32
|
* Store stred programs as a flat list of commands with no nesting, using a new ↵Charlie Stanton2023-04-261-37/+27
| | | | jump command to simulate command blocks
* Add Y and Z registersCharlie Stanton2023-04-261-0/+8
|
* Add a and A commands for global substitutionCharlie Stanton2023-04-211-3/+11
|
* Add ^xyz^ as a shorthand for ="xyz"= in subexCharlie Stanton2023-04-211-1/+1
|
* Adds some shorthands for substituting the beginning and end of the path registerCharlie Stanton2023-04-201-15/+52
|
* Replaces the inflexible delete all with separate DeleteValue and DeletePath ↵Charlie Stanton2023-04-201-1/+3
| | | | commands
* Add a shorthand for subexes that start and end with `, ~, = or "Charlie Stanton2023-04-201-1/+7
|
* Adds a substitute path command: SCharlie Stanton2023-04-201-11/+11
|
* Remove filters and various commands that are no longer wantedCharlie Stanton2023-04-201-181/+0
| | | | These have all been made redundant by the incredible substitute command
* Remove the need for a semicolon after each commandCharlie Stanton2023-04-201-6/+2
|
* Add commands to append to and swap with the path and X registersCharlie Stanton2023-04-201-0/+8
|
* Adds the noop command 'o'Charlie Stanton2023-04-191-0/+2
|
* Upgrades the substitute command to also act as a filterCharlie Stanton2023-04-191-1/+12
| | | | Substitute now captures the command after it and only runs it if the substitution is a success
* Adds parsing substitute commands, though executing them currently does nothingCharlie Stanton2023-04-191-0/+23
|
* Move JSON serialising, deserialising and walking code into a separate packageCharlie Stanton2023-02-191-16/+17
|
* Adds some new commandsCharlie Stanton2022-09-211-5/+98
|
* Adds new filtersCharlie Stanton2022-08-271-16/+34
| | | | | | | | - Begin terminals - End terminals - All terminals - Negate - AND
* Adds a bunch of new path pattern featuresCharlie Stanton2022-08-261-34/+59
| | | | | | - Bracketting in expressions - OR with | - Optional with ?
* Refactors some stuff and adds lexing and parsingCharlie Stanton2022-08-261-0/+145