-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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
Labels
No labels