Commit Graph

8 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 7236b204b9
Fix some clippy pedantic errors 2022-07-04 00:11:55 +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
Julius fc942b9bc0
Initial Commit 2022-07-02 23:42:15 +02:00