You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Triton Circonflexe (Jira)" <ji...@apache.org> on 2022/09/10 18:20:00 UTC
[jira] [Commented] (THRIFT-5626) Parser should not confuse data types and field names
[ https://issues.apache.org/jira/browse/THRIFT-5626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17602745#comment-17602745 ]
Triton Circonflexe commented on THRIFT-5626:
--------------------------------------------
For those interested in updating their own parsers to handle using some keywords as identifiers, when using [Lemon|https://www.sqlite.org/lemon.html]: Use the [%fallback|https://sqlite.org/src/doc/trunk/doc/lemon.html#pfallback] directive.
Didn’t find any Yacc/Bison equivalent directive.
> Parser should not confuse data types and field names
> ----------------------------------------------------
>
> Key: THRIFT-5626
> URL: https://issues.apache.org/jira/browse/THRIFT-5626
> Project: Thrift
> Issue Type: Improvement
> Components: Compiler (General)
> Reporter: Jens Geyer
> Assignee: Jens Geyer
> Priority: Major
>
> {code}
> struct foo {
> 1: optional string string
> 40: optional string uuid
> }
> {code}
> Should compile.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)