Skip to content

Parsing fails for proto tuples #7

@psybers

Description

@psybers

The parser fails to work on this (valid) input:

type Person = parsedmessage {
username: string
};

But it works fine on these inputs:

type Person = {
username: string
};

type Person = parsedmessage {
};

Exception in thread "main" sizzle.parser.ParseException: Encountered " "type" "type "" at line 1, column 1.
Was expecting one of:
"$" ...
"if" ...
"do" ...
"map" ...
"for" ...
"not" ...
"when" ...
"emit" ...
"table" ...
"while" ...
"break" ...
"proto" ...
"protox" ...
"array" ...
"switch" ...
"return" ...
"result" ...
"continue" ...
"function" ...
"parsedmessage" ...
<INTEGER_LITERAL> ...
<FLOATING_POINT_LITERAL> ...
<STRING_LITERAL> ...
...
"{" ...
"(" ...
"+" ...
"-" ...
"~" ...
"!" ...
"?" ...
...

at sizzle.parser.SizzleParser.generateParseException(SizzleParser.java:4967)
at sizzle.parser.SizzleParser.jj_consume_token(SizzleParser.java:4843)
at sizzle.parser.SizzleParser.Program(SizzleParser.java:74)
at sizzle.parser.SizzleParser.Start(SizzleParser.java:14)
at sizzle.compiler.SizzleCompiler.main(SizzleCompiler.java:179)

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