add some boolean operations, tests for

Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
Ava Hahn 2023-03-02 09:43:12 -08:00
parent c1d83a6285
commit 28e158f110
Signed by untrusted user who does not match committer: affine
GPG key ID: 3A4645B8CF806069
5 changed files with 292 additions and 4 deletions

View file

@ -127,7 +127,7 @@ This contains any executable target of this project. Notably the main shell file
Note: this section will not show the status of each item unless you are viewing it with a proper orgmode viewer
*** TODO Rudimentary Control Flow
**** DONE if clause
**** TODO let clause
**** DONE let clause
**** TODO while clause
**** TODO circuit clause
*** TODO Help function
@ -143,22 +143,26 @@ Will need a concatenate function for tables
*** TODO Custom ast pretty print
*** TODO Shell module
**** TODO Process launching with environment variables
**** TODO Optional form of process which allows fd redirecting
**** TODO Foreground process TTY
**** TODO Background processes
*** TODO list operations
**** DONE append
**** DONE expand
**** TODO head (returns (head rest))
**** TODO tail (returns (rest tail))
**** TODO queue (append to front)
**** TODO snippet for dequeue
**** TODO snippet for pop
*** TODO boolean operations
**** TODO and (circuit)
**** TODO or
**** DONE and (circuit)
**** DONE or
**** TODO xor
**** TODO no
**** DONE no
**** TODO eq?
**** TODO toggle
*** TODO string operations
**** TODO typecast (string)
**** TODO contains
**** TODO len
**** TODO concat
@ -166,6 +170,8 @@ Will need a concatenate function for tables
**** TODO split (on delimiter)
**** TODO strcons (sprintf but its all string tokens under the hood)
*** TODO arithmetic operations
**** TODO typecast (int)
**** TODO typecast (float)
**** TODO add
**** TODO sub
**** TODO div