Skip to content

Subroutine within a subroutine using arguments #6

Description

@kakariki1

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions