qmic/tests/comments.qmi
Alex Elder 69f032f380 parser: add support for comments
Add the ability for input files to have comments in them.  A comment
begins with a '#' character and continues through the end of the line.

Signed-off-by: Alex Elder <elder@linaro.org>
Message-Id: <20211001232338.769309-21-elder@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2021-10-04 12:28:05 -05:00

29 lines
516 B
Plaintext

# This is a comment at the beginning of the file
#
#############
package test;
#############
const TEST_REQUEST_RESPONSE = 35; # Skip me!!! # Skip me!!!
struct qmi_result {
u16 result;
# No limit on
u16# where comments
# can go
error;
};
request test_request {
required u8 test_number = 0x12;
} = 0x23; # Skip me!!! # Skip me!!!
response test_response {
required qmi_result r = 2;
} = 043;
indication test_indication {
optional u64 value = 0x99;
} = 0x7;
######## End the file with a comment