Skip to content

Incorrect type of token with number 0xFFFF because of incorrect ATN serialization #3555

@KvanTTT

Description

@KvanTTT

Grammar

lexer grammar L;
T_FFFF: 'FFFF' -> type(65535);

Input

FFFF

Actual result

[@0,0:3='FFFF',<-1>,1:0]

But -1 value is reserved for EOF

Expected result

[@0,0:3='FFFF',<65535>,1:0]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions