Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Lexer failing: Matched the empty string ( id 32) #2

@auyer

Description

@auyer

When running the examples, I get the empty String error, although it was suposed to be cautght by the ( |\t|\n) regex

In multiple Runs, this is the results:

> lexing ex/ex1.x
panic:  Lexer error: matched the empty string at 0:0 (tc=62) for match id 32. 

> lexing ex/ex2.x
panic: Lexer error: matched the empty string at 0:0 (tc=106) for match id 32.

> lexing ex/ex3.x
panic: Lexer error: matched the empty string at 0:0 (tc=195) for match id 32.

go run main.go ex/ex4.x
> lexing ex/ex4.x
panic: Lexer error: matched the empty string at 0:0 (tc=17) for match id 32.

> lexing ex/ex5.x
panic: Lexer error: matched the empty string at 0:0 (tc=261) for match id 32.

> lexing ex/fib.x
panic: Lexer error: matched the empty string at 0:0 (tc=702) for match id 32.

I am investigating, but I am also still learning the inner workings of this code . I do not guarantee to find the issue.

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