summaryrefslogtreecommitdiff
path: root/source/compiler/aslcompiler.y
Commit message (Collapse)AuthorAgeFilesLines
* iASL: remove unused parser file and fix msvc2017 build filesErik Kaneda2020-01-151-4921/+0
| | | | | | | | | | AslCompiler.y had been split into numerous .y files several years ago. When this change happened, the actual file was never removed. This commit removes this unecessary file, and adds the .y files to be displayed in the solution explorer, and adds build rules for AslParser.y. Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
* All acpica: Update copyrights to 2020Robert Moore2020-01-091-1/+3
| | | | Including tool signons.
* acpisrc: add unix line ending support for non-windows buildErik Schmauss2019-11-141-2/+0
| | | | Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
* iASL: Use NUM_PREDEFINED_REGIONS instead of hardwired integerRobert Moore2019-11-071-1/+1
| | | | Was 0xA0 previously.
* Tools: update project files to msvc2017Robert Moore2019-07-031-0/+4921
| | | | | Note: this change deprecates the project files found in msvc9.
* iASL: Split huge parser file into multiple subfiles. Uses M4.Robert Moore2014-08-081-3659/+0
| | | | | | | | | | | Split the main aslcompiler.y file into a master file and 4 included subfiles, using the M4 macro processor to perform the actual include, since Bison does not provide this function. Makefiles/project files updated. M4 is typically included in the Bison package, for both Windows and Unix.
* Update ACPICA copyrights to 2014.Robert Moore2014-01-061-1/+1
| | | | | Update ACPICA copyrights to 2014. Includes all source headers and signons for the various tools.
* Update ACPICA copyrights to 2013.Robert Moore2013-01-081-1/+1
| | | | Includes all source headers and signons for the various tools.
* iASL: Disallow method call as argument to ObjectType ASL operator.Robert Moore2012-11-211-1/+14
| | | | | | | | | | This change tracks an errata to the ACPI 5.0 document. The AML grammar will not allow the interpreter to differentiate between a method and a method invocation when these are used as an argument to the ObjectType operator. The ACPI specification change is to disallow a method invocation (UserTerm) for the ObjectType operator.
* Small fix for standard Intel legal header.Robert Moore2012-09-271-1/+1
| | | | Remove an extraneous space after a comma, for consistency.
* Remove extra spaces after periods in the Intel license.Robert Moore2012-09-261-11/+11
| | | | For consistency with the rest of the source code.
* iASL/table_compiler: Some additional return statement fixes.Robert Moore2012-09-211-1/+1
| | | | Add parens around the returned expression.
* iASL: Fix constant folding for fixed-length constants.Robert Moore2012-08-031-8/+16
| | | | | | This change fixes a problem where the constant folding code was not invoked for arguments that compile to fixed-length constants (either Byte, Word, DWord, or QWord.) ACPICA BZ 970.
* iASL: Fix non-ANSI // comments in main parser file.Robert Moore2012-07-191-61/+61
| | | | convert to /* */ comments.
* ACPI 5.0/iASL: Add support for PCC keyword.Robert Moore2012-05-031-0/+2
| | | | | Adds support for the PCC keyword for the Register() resource descriptor macro.
* iASL: Expand allowable byte constants for addres space IDs.Robert Moore2012-04-201-1/+1
| | | | Expanded range from 0x80-0xFF to 0x0A-0xFF.
* iASL: De-tabify main parser file for consistency.Robert Moore2012-03-281-100/+100
| | | | | ACPICA source does not use tabs, since they are not consistent across systems.
* iASL: Remove #line and #include from main parser.Robert Moore2012-03-281-9/+0
|
* iASL: Implement #line directive in compiler lexer.Robert Moore2012-03-281-27/+2
| | | | | | | Move main compiler support for #line from the parser to the lexer. This simplifies the implementation, and allows #line to appear within any ASL statement (the entire line where #line appears is simply removed from the input after the new line number is set.)
* iASL: Add pass-thru #line support for correct line numbers.Robert Moore2012-03-231-4/+26
| | | | | | Preprocessor now adds #line directives so that the compiler will emit error messages with the proper line number in the original source file.
* iASL: Update flex/bison files for new versions of the tools.Robert Moore2012-02-171-0/+5
| | | | Update to newer versions of flex and bison.
* Update ACPICA copyrights to 2012.Robert Moore2012-01-031-1/+1
| | | | Standard ACPICA source modules only.
* ACPI 5.0/iASL: Add new I/O restriction keyword (GPIO descriptors)Robert Moore2011-11-101-0/+2
| | | | Late addition of IoRestrictionNoneAndPreserve. Lin Ming.
* ACPI 5.0/iASL: Update for StopBitsZero keyword.Robert Moore2011-11-101-2/+2
| | | | For UartSerialBus descriptor. Was originally StopBitsNone.
* ACPI 5.0/iASL: FixedDMA descriptor, make width optional.Robert Moore2011-11-101-4/+11
| | | | Transfer width is optional, default is 32 bit.
* ACPI 5.0/iASL: Restrict GpioInt descriptor PinList to one value.Robert Moore2011-11-101-1/+1
| | | | | As per the spec, only one value is allowed in this list for GpioInt (GpioIo allows a real PinList.)
* iASL: Improve support for semicolon statement terminators.Robert Moore2011-11-101-1/+3
| | | | | | | | | | The ASL language was originally defined without semicolons. However, semicolons were added to the grammar in ACPI 3.0 for convenience since many programmers use them out of habit. Basically, semicolons can be ignored in the ASL source file. The iASL compiler tosses semicolons in some cases, but in others, it causes an "invalid character" exception. This commit fixes the problem and allows semicolons after every <Term> grammar element.
* iASL: Cleanup/reorg of bison/flex grammar files.Robert Moore2011-11-101-492/+485
| | | | | Complete the integration of new operators and descriptors. reorder and alphabetize sections.
* iASL: Cleanup support for FFixedHW address space.Robert Moore2011-11-101-2/+2
| | | | Group with the rest of the space IDs.
* ACPI 5.0/iASL: Update to fix some default values in descriptors.Robert Moore2011-11-101-3/+3
| | | | Some issues with the new descriptors, default values.
* ACPI 5.0/iASL: Update expected shift/reduce conflicts.Robert Moore2011-11-101-1/+1
| | | | Caused by change to ResourceUsage type.
* ACPI 5.0/iASL: Fix to add PullDefault/PullNone keywords.Robert Moore2011-11-101-1/+4
| | | | Also fix an issue with the optional ResourceUsage descriptor arg.
* ACPI 5.0/iasl-disassembler: Update resource descriptors.Robert Moore2011-11-101-0/+2
| | | | Update to current proposals.
* ACPI 5.0: Fix parse tree issue with Connection operator.Robert Moore2011-11-101-2/+2
| | | | Child count to TrLinkChildren was incorrect.
* ACPI 5.0: Finish Connection(), more AccessAs changes.Robert Moore2011-11-101-1/+8
| | | | | | Add support for Buffer arguments for Connection. AccessAs now has a separate opcode for the AccessLength case. Both are per the latest ACPI 5 proposals.
* ACPI 5.0: Update AccessAs syntax/encoding.Robert Moore2011-11-101-13/+11
| | | | Update to final ACPI 5.0 syntax and AML encoding.
* ACPI 5.0/iASL/Disassembler: Support for Connection/AccessAs.Robert Moore2011-11-101-4/+11
| | | | | New operator, Connection(). Update to AccessAs() for new optional argument.
* ACPI 5.0/iASL: Update to new RawDataBuffer object.Robert Moore2011-11-101-2/+10
| | | | | Changed from simple DataBuffer. Also migrate all VendorData generation to a single function.
* ACPI 5.0/iASL: Initial support for "Connection" keyword.Robert Moore2011-11-101-0/+11
| | | | Just parser support.
* ACPI 5.0/iASL: Add new AccessAttribute keywords.Robert Moore2011-11-101-5/+11
| | | | For GenericSerialBus fields.
* ACPI 5.0: iASL grammar updates for new descriptors.Robert Moore2011-11-101-54/+62
| | | | Better specification of required versus optional fields.
* ACPI 5.0: Add FlowControl to UartSerialBus descriptor.Robert Moore2011-11-101-14/+32
| | | | Was unclear in proposal if this field actually existed.
* ACPI 5.0: Add DataBuffer type for resource descriptors.Robert Moore2011-11-101-4/+13
| | | | Handles the optional VendorData bytes cleanly.
* ACPI 5.0: Support for new FixedDMA descriptor.Robert Moore2011-11-101-7/+23
| | | | Short FixedDMA resource descriptor.
* ACPI 5.0: iASL: update resource descs for latest proposals.Robert Moore2011-11-101-78/+139
| | | | | Latest version of the resource descriptors. Compiler support only.
* iASL/ACPI5.0: Support for new region space IDs.Robert Moore2011-11-101-0/+4
| | | | | | GPIO and GenericSerialBus keywords supported. Also includes disassembler support. Does not include core ACPICA support for these IDs.
* iASL/ACPI 5.0: Add new Resource Descriptors.Robert Moore2011-11-101-1/+254
| | | | | For compiler only, not disassembler. Code imported from Intel BIOS - Jiewen Yao.
* iASL: Add __PATH__ operator.Robert Moore2011-10-071-0/+2
| | | | | Returns the full path to the current file, if available. __FILE__ now always returns the simple filename.
* iASL: Changes to cleanup support for Berkeley yacc.Robert Moore2011-04-151-25/+39
| | | | | A general cleanup of code and various options to simplify the support for two parser generators, Bison and yacc.
* iASL: Mark Return() and Return as "Null" return statements.Robert Moore2011-03-221-2/+2
| | | | | | | Since the parser stuffs a "zero" as the return value for these statements (due to the AML grammar), they were seen as "return with value" by the semantic checking. They are now seen correctly as "null" return statements.