Donate Share

SMC - The State Machine Compiler

Subscribe

Problem with parenthesis balancing and SMC 6

  1. 2009-10-29 16:08:45 UTC

    Hello,

    I created some time ago a SMC-based application, with SMC 5 (c++ target).

    In a state transition, I define an action:

    SetComment(ssString("TestString ["));

    (ssString is a simple string class).

    SMC 5 compiles the .sm file correctly; SMC 6 returns an error:

    "User source code contains an unbalanced open, closing pair."

    It seems that the square bracket is parsed (why? the SetComment(ssString("TestString [")); should only be inserted in the generated source) and matched against the other paranthesis.

    Any idea? (I tried to use an escape code, "\[", with no effect).

    Thanks in advance,

    Paolo

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.