summaryrefslogtreecommitdiffstats
path: root/aidl_language_l.l
Commit message (Collapse)AuthorAgeFilesLines
* Put parcelable members behind gettersCasey Dahlin2015-10-121-12/+7
| | | | | | | Bug: 24410295 Change-Id: I28b70254c8e1846eaeab8523da5975843e86e0de Test: Full android build Signed-off-by: Casey Dahlin <sadmac@google.com>
* Put AidlInterface members behind methodsCasey Dahlin2015-10-091-2/+2
| | | | | | | Change-Id: Ib367a9183e734a008acecf90c5f3f25e51e16b37 Test: Full android build Bug: 24410295 Signed-off-by: Casey Dahlin <sadmac@google.com>
* Add ImportResolver classChristopher Wiley2015-10-071-1/+0
| | | | | | | | | | This class delegates to an IoDelegate for file I/O. This replaces the search_path.* files. Bug: 24703046 Test: Unittests pass Change-Id: I261f6066cef514926b45174988863b745a37e87c
* Parse package names in parser not lexerCasey Dahlin2015-10-061-68/+53
| | | | | | | | | We also take this opportunity to neaten up the lexer code. Change-Id: I0220f827144be768bcf771e240125e805c93d670 Test: Full android build Bug: 24680682 Signed-off-by: Casey Dahlin <sadmac@google.com>
* Do generic parsing in parser, not lexerCasey Dahlin2015-10-061-4/+3
| | | | | | | Change-Id: I223caa8358e4f7f0554eaa9d198eb6366c141ce1 Test: Unit tests and full android rebuild Bug: 24680682 Signed-off-by: Casey Dahlin <sadmac@google.com>
* Use parser to find array bracketsCasey Dahlin2015-10-061-3/+3
| | | | | | | Change-Id: Ib93032113c92fe23e1a7e4ac9b990a065f2b5d19 Test: Unit tests, Full Android Rebuild Bugs: 24680682 Signed-off-by: Casey Dahlin <sadmac@google.com>
* Put data in AidlMethod behind getters and settersCasey Dahlin2015-10-061-2/+2
| | | | | | | Change-Id: I453ab9bcbbc610df4109d691283e7b872e0078a4 Test: Unit tests Bug: 24410295 Signed-off-by: Casey Dahlin <sadmac@google.com>
* Replace method_type with AidlMethodCasey Dahlin2015-10-011-2/+3
| | | | | | | | | | | As usual, we're leaving most of the same members in place and public. However, we have removed the linked list pointer and switched to std::vector for lists of methods. Change-Id: Id0aa55340e2c56bfa1001c6c8a8343bb4815d38e Test: unit tests Bug: 24410295 Signed-off-by: Casey Dahlin <sadmac@google.com>
* Fold in/out/inout differentiation in to parserCasey Dahlin2015-10-011-3/+4
| | | | | | | | | | This actually simplifies things a great deal, and means we don't need buffer types back from the lexer for these three tokens. Small victories. Change-Id: I5de6ef01852012ac60dd91238ba013662089ed0e Test: unit tests Bug: 24410295 Signed-off-by: Casey Dahlin <sadmac@google.com>
* Remove usage of malloc in favor of newCasey Dahlin2015-09-291-10/+12
| | | | | | | | | This reverts commit b2116869ba878222d607807be594366b6e9392f7. Test: unittests Bug: 24469748 Change-Id: I82de5a12cf851ffdacc2c7969a2429746ba7a772 Signed-off-by: Casey Dahlin <sadmac@google.com>
* Revert "Remove usage of malloc in favor of new"Christopher Wiley2015-09-291-7/+7
| | | | | | | | This reverts commit b992b450093546d275d2da4b544a611700536e29. The build's address sanitizer is complaining that we're calling delete[] on a 3 byte region allocated with malloc(). Change-Id: I03e667e1b64a9b298607d0709747c02c8f7d0da6
* Remove usage of malloc in favor of newCasey Dahlin2015-09-281-7/+7
| | | | | | | Change-Id: Iee22541081caf78e295f7a05e248bfdee0bc8770 Test: unittests Bug: 24469748 Signed-off-by: Casey Dahlin <sadmac@google.com>
* Minor cleanup of aidl.cppChristopher Wiley2015-09-151-3/+4
| | | | | | | | | | 1) Move some helper functions to parse_helpers.cpp 2) Refactor some helper functions to take advantage of C++ built ins 3) Add unittest coverage of refactored logic 4) clang-format -i -style=Google parse_helpers.cpp 5) Move remaining helper functions of aidl.cpp into anonymous namespace Change-Id: I3a2cf7be113ac7f71a1a3502b12a8ed910509546
* Kill psGlobal and g_callbacksCasey Dahlin2015-09-151-15/+0
| | | | | | | | | | | No more callbacks. No more unsafe pointer cast (fixes Bug 23977313). The best part is that the entire YACC/FLEX portion is now behind an object from the rest of the program's POV. Test: Ran unit tests Change-Id: I9e38953bd0e65b8f1fad87ff2df049643ef6cc73 Signed-off-by: Casey Dahlin <sadmac@google.com>
* Make lexer output proper Bison location infoCasey Dahlin2015-09-141-7/+15
| | | | | | | | | | | This might introduce some minor changes in the grammar, as we have to change the way we lex whitespace in order to count lines, and the result is linebreaks aren't valid everywhere they used to be. But the whole android code base builds, and in coming changes we'll be able to put some of that back (we'll be reducing complexity in the lexer and moving that in to the grammar). Change-Id: I6a688b2dc45e6ea4838af466d2cca5e1b26f916c Signed-off-by: Casey Dahlin <sadmac@google.com>
* Remove unused extern declarationCasey Dahlin2015-09-141-2/+0
| | | | | Change-Id: I5481fef962e70263dc791339c0493407d3dabaf1 Signed-off-by: Casey Dahlin <sadmac@google.com>
* Abstract away file IO when writing generated codeChristopher Wiley2015-09-141-4/+1
| | | | | | | | | | | | | This allows us to write unittests of Java/Cpp AST elements without doing file I/O each time. Introduce a CodeWriter class which may write to either a string or a file dependening on the contect. While here, mark the write methods as const. Test: Compiles, unittests pass, added new unittest demonstrating usage. Bug: 23598995 Change-Id: I240ede41f0f9c04c0d14d1a3680ce5ab332babbc
* Revert change to win32 isatty stubCasey Dahlin2015-09-101-7/+0
| | | | | | | | This is attempting to fix build breakage caused by redefining the isatty stub for win32. Change-Id: I5f854934cb9d2b2981f6349045e85d9ad737aa77 Signed-off-by: Casey Dahlin <sadmac@google.com>
* Convert to C++ Bison outputCasey Dahlin2015-09-101-18/+19
| | | | | | | | | | 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>
* First pass on reentrant C++-ish parserCasey Dahlin2015-09-101-36/+26
| | | | | | | | | | | We're flipping Flex/Bison in to reentrant mode, cutting down on global variables, and exposing a more C++-like interface earlier. This is the first phase. There's still a couple of weird hacks to deal with the previous code's reckless disregard for scope sanity, but the outline of things to come is starting to appear, and this CL really doesn't need to get any bigger. Change-Id: Ife2d70db026d7ab1319bdf6c586959315666d0bb Signed-off-by: Casey Dahlin <sadmac@google.com>
* Remove RPC interface TypeCasey Dahlin2015-09-021-2/+0
| | | | | | | | | | | AIDL previously supported "rpc" and "flatten" types, which are not used anywhere in the Android tree. This patch removes them, which significantly cuts down code and complexity. Bug: 23517584 Test: Rebuilt AOSP tree against new version Change-Id: I6cf38d43c1ce109ffca987cc14520945aa22431f Signed-off-by: Casey Dahlin <sadmac@google.com>
* Revert "Move frameworks/base/tools/ to frameworks/tools/"Adam Lesinski2014-01-271-0/+214
| | | | This reverts commit 9f6a119c8aa276432ece4fe2118bd8a3c9b1067e.
* Move frameworks/base/tools/ to frameworks/tools/Mike Lockwood2013-08-281-214/+0
| | | | Change-Id: I3ffafdab27cc4aca256c3a5806b630795b75d5c8
* Enhance AIDL to take an explicit id for methodsMaurice Chu2012-10-181-1/+3
| | | | | | | | | | | | This adds an annotation to methods in AIDL of the form "void myMethod() = 3;" to explicitly set the onTransact id for the method. Either all methods must have explicitly annotated id's or none of them should be explicitly annotated. There is error checking in the AIDL compiler for duplicate id's and id's outside of the valid range. Bug: 7353910 Change-Id: I868045e3f112c9a279c573cea368a621116cbf77
* Support custom flattenable types for RPC.Joe Onorato2012-02-101-0/+1
|
* Checkpoint adding @home RPC support to aidlJoe Onorato2012-02-101-0/+1
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+210