QMI IDL compiler
Go to file
Alex Elder c172d15f2b parser: use stronger typing in the symbol structure
Refine the definition of the symbol structure with an anonymous
union to make it a little clearer whether a token describes a
message or a type.

In symbol_add(), be more explicit about the type of additional
arguments expected to be seen.  Add a name to the enumerated type
representing the defined "type" type values (U8, STRUCT, etc.).
And change the type of the type field in the symbol structure to
have that enumerated type.

Specifically, if the symbol being added is a message, the argument
that follows should be one of the message types (request, response,
or indication).  And if the symbol being added is a type, the next
argument is expected to be one of the "type" types.  This makes it a
little easier to understand what the code is doing.

Signed-off-by: Alex Elder <elder@linaro.org>
Message-Id: <20211001232338.769309-20-elder@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2021-10-04 12:27:02 -05:00
.gitignore qmic: Add .gitignore 2016-06-02 10:27:42 -07:00
accessor.c kernel: Introduce kernel-style generator 2018-01-31 13:00:02 -08:00
kernel.c kernel: Support having strings in structs 2018-06-29 14:12:50 -07:00
LICENSE qmic: Add the missing LICENSE file 2016-06-02 10:26:43 -07:00
list.h qmic: Adopt common list implementation 2018-01-30 15:55:49 -08:00
Makefile Makefile: Allow compiler/linker flags to be overridden 2018-03-05 21:54:21 -08:00
parser.c parser: use stronger typing in the symbol structure 2021-10-04 12:27:02 -05:00
qmi_tlv.c qmic: Initial basic implementation 2016-02-07 09:27:50 -08:00
qmic.c kernel: Introduce kernel-style generator 2018-01-31 13:00:02 -08:00
qmic.h parser: use stronger typing in the symbol structure 2021-10-04 12:27:02 -05:00