Commit Graph

9 Commits (main)

Author SHA1 Message Date
Julius 31c3827e96
Add support for operators to custom type
This is done by implementing the required functions for your custom type.

Sadly I could not solve this by using the regular traits like `Add`,
since I can't easily check if a different trait is implemented.
2022-07-04 22:23:59 +02:00
Julius fd3ec9e12d
Add if expressions 2022-07-04 21:49:08 +02:00
Julius 506b406146
Add return to functions 2022-07-04 15:36:03 +02:00
Julius e30dfcb0a9
Add README, update sample file, fix functions 2022-07-03 23:45:34 +02:00
Julius 68bcdb987e
Add method syntax 2022-07-03 23:13:12 +02:00
Julius 4700af0e54
Allow functions to take both ref and value params 2022-07-03 21:45:38 +02:00
Julius 25a9a772e6
Add custom types. Make an attempt at method calls.
You just need to implement `CustomValue`, `Debug` and `Clone`
for your own types, and the type can be used in your code.

Next on the list: method calls (e.g. x.y(), instead of y(x))
2022-07-03 20:32:31 +02:00
Julius c67cbf66e6
Add functions and some clean up 2022-07-03 16:01:45 +02:00
Julius df3f0bf0a7
Basic pest parser 2022-07-03 15:17:37 +02:00