Hello CurlyMoo,
I'm not sure if I just made a mistake or found an issue, please have a look:
I downloaded and compiled your library and had the unittest run on a ESP8266.
It works perfectly fine.
Then I added following unittest:
{ "on sub2($a) then print($a); end on sub1($a) then print($a); sub2(2); end on main then sub1(1); end", { { NULL, 0 } }, { { NULL, 0 } }, 0 }
This does not run and I get following error:
ERROR: Unexpected token (3187)
Can you please have a look ?
I want to call a subroutine within a subroutine using arguments ...
Many thanks,
lakeroe
Hello CurlyMoo,
I'm not sure if I just made a mistake or found an issue, please have a look:
I downloaded and compiled your library and had the unittest run on a ESP8266.
It works perfectly fine.
Then I added following unittest:
{ "on sub2($a) then print($a); end on sub1($a) then print($a); sub2(2); end on main then sub1(1); end", { { NULL, 0 } }, { { NULL, 0 } }, 0 }
This does not run and I get following error:
ERROR: Unexpected token (3187)
Can you please have a look ?
I want to call a subroutine within a subroutine using arguments ...
Many thanks,
lakeroe