Skip to content

Incorrect syntax for the for loop? #1

@ANogin

Description

@ANogin

In trying to use jflex-scala, I am getting a compilation error on the generated .scala file:

[error] .../scala-2.12/src_managed/main/foo.scala:882: '<-' expected but '=' found.
[error]       for (zzCurrentPosL = zzStartRead  ;
[error]                          ^
[error] .../scala-2.12/src_managed/main/foo.scala:882: illegal start of simple expression
[error]       for (zzCurrentPosL = zzStartRead  ;
[error]                                         ^
[error] .../scala-2.12/src_managed/main/foo.scala:883: '<-' expected but ';' found.
[error]            zzCurrentPosL < zzMarkedPosL ;
[error]                                         ^
[error] .../scala-2.12/src_managed/main/foo.scala:884: '<-' expected but ')' found.
[error]            zzCurrentPosL += zzCharCount ) {
[error]                                         ^
[error] .../scala-2.12/src_managed/main/foo.scala:1010: illegal start of simple expression
[error]     }
[error]     ^
[error] 5 errors found

(the last error corresponds to the closing bracket that matches the opening bracket at the end of the while ((ret == null) && !zzAtEOF) { line).

I am very new to both scala and jflex, and trying to incorporate the use of jflex-scala into an existing scala project that has not been using it before. I am using addSbtPlugin("edu.umass.cs.iesl" % "sbt-jflex-scala" % "0.1") to incorporate jflex-scala into the build.

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