mattunlv / ProcessJ-main-branch-old

ProcessJ Compiler Project
2 stars 4 forks source link

Timer printing codegen error #4

Closed cabelshrestha closed 7 years ago

cabelshrestha commented 7 years ago
public proc void foo(long seed) [yield=true]{
  timer t;
  println("A: " + t.read());
  t.timeout(1);
  println("B: " + t.read());
}

gives:

/Users/matt/.processj/test3.java:19: error: illegal start of expression
            std.io.println( ("A: " +  = PJTimer.read()) );
                                      ^
/Users/matt/.processj/test3.java:31: error: illegal start of expression
            std.io.println( ("B: " +  = PJTimer.read()) );
                                      ^
2 errors

matt

cabelshrestha commented 7 years ago

Fixed.