summaryrefslogtreecommitdiffstats
path: root/edify/parser.yy (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-10-09edify: Export the header and move to Soong.Tao Bao1-1/+1
Also make matching changes to applypatch modules which include edify/expr.h. Test: mmma bootable/recovery Change-Id: Ia72be3caa010d7f56a70add2da345e631b306378
2017-03-28Suppress the unused variable warning in parser.yyTianjie Xu1-0/+3
The warning says: bootable/recovery/edify/parser.yy:123.3-9: warning: unused value: $1 Bug: 36678950 Test: mma Change-Id: Ic734c416a5a8f62fb5e516669102c1d2b4ad5083
2017-03-22Remove malloc in edify functionsTianjie Xu1-44/+27
And switch them to std::vector & std::unique_ptr Bug: 32117870 Test: recovery tests passed on sailfish Change-Id: I5a45951c4bdf895be311d6d760e52e7a1b0798c3
2016-10-13edify: Some clean-ups to libedify.Tao Bao1-5/+24
- Remove dead declarations in expr.h: SetError(), GetError(), ClearError(). - Remove the declaration of Build() out of expr.h. - Use std::unordered_map to implement RegisterFunction() and FindFunction(); kill FinishRegistration(). - Add a testcase for calling unknown functions. Test: mmma bootable/recovery; recovery_component_test passes. Change-Id: I9af6825ae677f92b22d716a4a5682f58522af03b
2016-01-13Rename .l/.y to .ll/.yyYing Wang1-0/+0
Now to generate .cpp you need to use .ll/.yy. Bug: 26492989 Change-Id: Ib078e03b3b0758f7a62595c343e52ae856bcb33f
2016-01-12Rename .l/.y to .ll/.yyYing Wang1-139/+0
Now to generate .cpp you need to use .ll/.yy. Bug: 26492989 Change-Id: Ib078e03b3b0758f7a62595c343e52ae856bcb33f
2015-08-20edify: Switch to C++.Tao Bao1-4/+4
Change-Id: I71aede6e29af1dc4bb858a62016c8035db5d3452
2014-02-14clean up some warnings when building recoveryDoug Zongker1-0/+9
Change-Id: I1541534ee6978ddf8d548433986679ce9507d508
2009-06-12fixes to edify and updater scriptDoug Zongker1-12/+19
A few more changes to edify: - fix write_raw_image(); my last change neglected to close the write context, so the written image was corrupt. - each expression tracks the span of the source code from which it was compiled, so that assert()'s error message can include the source of the expression that failed. - the 'cookie' argument to each Function is replaced with a State object, which contains the cookie, the source script (for use with the above spans), and the current error message (replacing the global variables that were used for this purpose). - in the recovery image, a new command "ui_print" can be sent back through the command pipe to cause text to appear on the screen. Add a new ui_print() function to print things from scripts. Rename existing "print" function to "stdout".
2009-06-12edify extensions for OTA package installation, part 2Doug Zongker1-4/+6
Adds more edify functions for OTAs: is_mounted getprop apply_patch apply_patch_check apply_patch_space write_raw_image write_firmware_image package_extract_file This allows us to install radios, hboots, boot images, and install incremental OTA packages. Fixes a couple of dumb bugs in edify itself: - we were doubling the size of the function table each time it was *not* full, rather than each time it was full - "no such function" errors weren't visible to the parser, so they didn't prevent execution of the script.
2009-06-10core of edify, an eventual replacement for amendDoug Zongker1-0/+121
Edify is a simple scripting language for OTA installation, to be used when we move to OTAs being installed via binaries shipped with the package.