Skip to content

Trouble parsing/lexing 'errors' #49

@mingodad

Description

@mingodad

Converting this grammar https://github.com/youtube/cobalt/blob/main/cobalt/css_parser/grammar.y I found that lalr has trouble parsing/lexing the identifier errors.

error_bug {

%whitespace "[ \t\r\n]*";
%whitespace "//[^\n\r]*";
//%whitespace "/\*[^*]+\*/";
%whitespace "/\*:C_MultilineComment:";

errors :
	error
	| errors error
	;

}

Output:

lalr (10:0): ERROR: undefined symbol 's'
Error compiling grammar. Error count = 1

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