File: yacc_pure_parser.diff

package info (click to toggle)
android-platform-system-tools-hidl 10.0.0%2Br36-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,928 kB
  • sloc: cpp: 21,932; yacc: 1,416; java: 1,239; lex: 496; sh: 360; python: 44; xml: 20; makefile: 12
file content (29 lines) | stat: -rw-r--r-- 589 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: api.pure declaration seems incompatible with Bison 3.x
Author: Katerina, Samyak Jain
Last-Update: 2019-08-19
---

--- a/hidl-gen_y.yy
+++ b/hidl-gen_y.yy
@@ -37,6 +37,7 @@
 #include <hidl-util/FQName.h>
 #include <hidl-util/StringHelper.h>
 #include <stdio.h>
+#include <algorithm>
 
 using namespace android;
 
@@ -217,12 +218,11 @@
 %parse-param { android::Scope** const scope }
 %lex-param { void* scanner }
 %lex-param { android::Scope** const scope }
-%pure-parser
 %glr-parser
 %skeleton "glr.cc"
 
 %expect-rr 0
-%error-verbose
+%define parse.error verbose
 
 %debug