diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-12-03 18:25:03 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-12-03 18:25:03 -0500 |
commit | 1100ac865074effb3a4735c7449779f7193b7d0c (patch) | |
tree | 1a981ae33b1ba4a888c98640fed0e7fc74b18f57 /tests/block-test.tnsl | |
parent | 8fd930180e5d7a610117299bb9c48e28409d3106 (diff) |
General updates
+ Fill out eval a little and make sure that this builds.
~ CF kinda broken in AST. Gonna have to fix that. Upcoming Parser update.
Diffstat (limited to 'tests/block-test.tnsl')
-rw-r--r-- | tests/block-test.tnsl | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/block-test.tnsl b/tests/block-test.tnsl index c48d7de..2bd4053 100644 --- a/tests/block-test.tnsl +++ b/tests/block-test.tnsl @@ -22,10 +22,8 @@ ;i = 2 ;/ - /: include - "this" - "that" - :/ + :include "this" + :include "that" # ;; can be used as a quick block re-definition @@ -53,17 +51,17 @@ /;method Vector2 /; operator + (~Vector2 v) - ;self.x += v`.x - ;self.y += v`.y + ;self.x = self.x + v`.x + ;self.y = self.y + v`.y ;/ /; operator + (int32 a) - ;self.x += a - ;self.y += a + ;self.x = self.x + a + ;self.y = self.y + a ;/ ;/ - ;struct FVector2 () {} + ;struct FVector2 () {float x, y} -;/
\ No newline at end of file +;/ |