Skip to content

Java: jflex-generated lexer with line numbers fails to build #453

@andreasabel

Description

@andreasabel

Concerns option combination --java --jflex -l:

javac -sourcepath . test/Yylex.java test/parser.java test/sym.java
test/Yylex.java:296: error: no suitable constructor found for Location(int,int,long)
    return new ComplexSymbolFactory.Location(yyline+1, yycolumn+1, yychar);
           ^
    constructor Location.Location(int,int,int) is not applicable
      (argument mismatch; possible lossy conversion from long to int)

This could be due to an incompatibility with JFLex 1.8.

Metadata

Metadata

Assignees

Labels

JavalexerConcerning the generated lexerpositionConcerning position information in parsed AST

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions