Skip to content

Commit

Permalink
reyacc
Browse files Browse the repository at this point in the history
  • Loading branch information
ie-pham committed Apr 30, 2024
1 parent 108d17d commit a149fde
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 41 deletions.
79 changes: 39 additions & 40 deletions pkg/traceql/expr.y.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/traceql/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ func TestAttributeNameErrors(t *testing.T) {
{in: "{ . foo }", err: newParseError("syntax error: unexpected END_ATTRIBUTE, expecting IDENTIFIER", 1, 3)},
{in: `{ . "foo" }`, err: newParseError("syntax error: unexpected END_ATTRIBUTE, expecting IDENTIFIER", 1, 3)},
{in: "{ .foo .bar }", err: newParseError("syntax error: unexpected .", 1, 8)},
{in: "{ parent. }", err: newParseError("syntax error: unexpected END_ATTRIBUTE, expecting IDENTIFIER or resource. or span.", 0, 3)},
{in: "{ parent. }", err: newParseError("syntax error: unexpected END_ATTRIBUTE", 0, 3)}, // yacc only allows up to 4 toks, we have 6 combinations of parent. now
{in: ".3foo", err: newParseError("syntax error: unexpected IDENTIFIER", 1, 3)},
{in: `{ ."foo }`, err: newParseError(`unexpected EOF, expecting "`, 0, 3)},
}
Expand Down

0 comments on commit a149fde

Please sign in to comment.