New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP generated from state machines with parameterized events #601

Nava2 opened this Issue Aug 26, 2015 · 0 comments


None yet
2 participants

Nava2 commented Aug 26, 2015

Originally reported on Google Code with ID 703

What steps will reproduce the problem?

  1. Open the following simple example:

class A {
sm {
s1 {
e1(int p) -> s2;

s2 {}


  1. Generate PHP code
  2. Run a syntax lint on the PHP code (use php -l -e FILENAME)

What is the expected output? What do you see instead?
The PHP lint fails event method definitions. The functions in the generated PHP use
Java-like syntax:

e1(int p)

rather than


which is causing failure in the PHP lint.

Reported by @CraigBryan on 2015-04-08 13:30:50

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