Skip to content

Unable to parse elem segment #24

Open
@Abhiroop

Description

@Abhiroop

When parsing valid wast files, the parser currently is unable to parse wast files containing this variant of the elem segment string:

(elem (;0;) (i32.const 1) func 0)

Currently, this throws the following error:

"Error occuried during parsing phase. Line 48, Column 29, Token TKeyword \"func\". Token lookahed: [Lexeme {pos = Just (AlexPn 1187 48 34), tok = TIntLit 0},Lexeme {pos = Just (AlexPn 1188 48 35), tok = TCloseBracket},Lexeme {pos = Just (AlexPn 1189 48 36), tok = TCloseBracket}]"

I presume the error lies somewhere in Parser.y. The reference interpreter is able to parse this file fine.

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