Eliminate DQUOT_START/SQUOT_START tokens 50/92250/2
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 23 Aug 2020 20:53:39 +0000 (22:53 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 23 Aug 2020 21:41:53 +0000 (23:41 +0200)
commit920595e594e70c8eb6414e5fc41e5a7f5751f36b
treee02fd6a02ee760fea03cf4dac861a84722ead6ce
parent04dd2570439dd064555398d24e11690ca1497bbc
Eliminate DQUOT_START/SQUOT_START tokens

Quoted strings are naturally terminated by end marker, potentially
preceded by DQUOT_STRING/SQUOT_STRING. This renders the corresponding
start tokens really just a academic completeness, costing us memory
while not bringing anything to the table.

Skip generation of these tokens, reducing memory usage by up to 4.5%.

JIRA: YANGTOOLS-1089
Change-Id: I0b7ce9bf292b0dd8475d63869ddfd8d2b86a387c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-antlr/src/main/antlr4/org/opendaylight/yangtools/yang/parser/antlr/YangStatementLexer.g4
yang/yang-parser-antlr/src/main/antlr4/org/opendaylight/yangtools/yang/parser/antlr/YangStatementParser.g4
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/ir/AntlrSupport.java