diff options
author | Casey Dahlin <sadmac@google.com> | 2015-09-10 18:29:09 -0700 |
---|---|---|
committer | Casey Dahlin <sadmac@google.com> | 2015-09-10 18:29:09 -0700 |
commit | 96786829c23cf56a776f6ec022fdbe18a0732add (patch) | |
tree | d9df988ed5779240e6c7d740754f0a92dc86a3d4 /tools/aidl/aidl_language.cpp | |
parent | 9941dcc7aadcc15f7a52b4a76af4025f33b7f45f (diff) |
Convert to C++ Bison output
We have to step up to a GLR parser to do this without exceptions (for no
reason other than Bison happens to use exceptions for the LALR(1) template and
not for the GLR one), but this should let us smooth out integration going
forward.
Change-Id: Iff44662914b4a65dfa5612d07c3a1ede07e6e4a9
Signed-off-by: Casey Dahlin <sadmac@google.com>
Diffstat (limited to 'tools/aidl/aidl_language.cpp')
-rw-r--r-- | tools/aidl/aidl_language.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/aidl/aidl_language.cpp b/tools/aidl/aidl_language.cpp index 525292055755..e2540658b620 100644 --- a/tools/aidl/aidl_language.cpp +++ b/tools/aidl/aidl_language.cpp @@ -1,4 +1,5 @@ #include "aidl_language.h" +#include "aidl_language_y.hpp" #include <stdio.h> #include <stdlib.h> #include <string> @@ -74,7 +75,7 @@ bool ParseState::OpenFileFromDisk() { } int ParseState::RunParser() { - int ret = yyparse(this); + int ret = yy::parser(this).parse(); free((void *)g_currentPackage); g_currentPackage = NULL; |