Skip to content

Commit ad18ffc

Browse files
committed
Adds support for taking address of floating point variables.
This makes both "ADR()" and "&" work with FP variables.
1 parent 81f82f2 commit ad18ffc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/syntax/float.syn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ FP_FUNCS:
8585

8686
ADR_EXPR:
8787
emit { TOK_VAR_LOAD, VT_ARRAY_FLOAT } E_VAR_SEARCH "%"
88+
emit { TOK_VAR_ADDR, VT_FLOAT } E_VAR_SEARCH "%"
8889

8990
INT_FUNCTIONS:
9091
"Int" FP_T_EXPR emit TOK_FP_INT

0 commit comments

Comments
 (0)