String '[ start, length, values ]' can't be parsed with the grammar below, as more fully described in the attached script, unless <result item descriptor list> is changed to G1 rule.
<array descriptor> ::= '[' <result item descriptor list> ']' # the test passes (whitespaces are discarded) if the below line becomes a G1 (s/~/::=/) rule <result item descriptor list> ~ <result item descriptor>* separator => [,] <result item descriptor> ~ 'start' | 'length' | 'value' | 'values' :discard ~ whitespace whitespace ~ [\s]+ The following exception is thrown: Error in SLIF parse: No lexemes accepted at line 1, column 10 Lexer "L0" rejected 1 lexeme(s) Rejected lexeme #1: <result item descriptor list>; value="length,"; length = 7 * String before error: [ start,\s * The error was at line 1, column 10, and at character 0x006c 'l', ... * here: length, values ] -- You received this message because you are subscribed to the Google Groups "marpa parser" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
discard-whitespace-and-separators.t
Description: Troff document
