edk2/BaseTools/Source/Python/Eot
Michael Kubacki 0cdbc92544 BaseTools/Eot: Regenerate CParser4 files with ANTLR 4.9
The CParser4 Python parser files (CLexer.py, CParser.py, CListener.py)
were generated 7 years ago with ANTLR 4.7.1.

Meanwhile, pip-requirements.txt pins antlr4-python3-runtime to version
4.9 in commit 4a7dd50, but the files were patched, not fully
regenerated. This version mismatch could result in failures when
running against non-trivial C code.

This change regenerates the CParser4 files with ANTLR 4.9 to resolve
the version mismatch. It also updates import statements to correctly
reference Eot instead of Ecc.

Steps used to regenerate the files:

  1. Download the ANTLR 4.9 complete tool JAR:
     - `https://www.antlr.org/download/antlr-4.9-complete.jar`

  2. Generate Python3 parser files

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
2026-02-27 23:18:15 +00:00
..
CParser3 BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
CParser4 BaseTools/Eot: Regenerate CParser4 files with ANTLR 4.9 2026-02-27 23:18:15 +00:00
__init__.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
c.py BaseTools: Fix multiple 'invalid escape sequence' warnings in tests 2024-09-23 04:55:53 +00:00
CodeFragment.py BaseTools: Eot: Remove unnecessary code 2025-07-01 09:51:38 +08:00
CodeFragmentCollector.py BaseTools: Eot: Remove unnecessary code 2025-07-01 09:51:38 +08:00
Database.py BaseTools: Eot: Remove unnecessary code 2025-07-01 09:51:38 +08:00
EfiCompressor.pyd Sync BaseTool trunk (version r2599) into EDKII BaseTools. 2013-08-23 02:18:16 +00:00
EotGlobalData.py BaseTools: Fix multiple 'invalid escape sequence' warnings in tests 2024-09-23 04:55:53 +00:00
EotMain.py BaseTools: Eot: Remove unnecessary code 2025-07-01 09:51:38 +08:00
EotToolError.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
FileProfile.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Identification.py BaseTools: Eot: Remove unnecessary code 2025-07-01 09:51:38 +08:00
InfParserLite.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
LzmaCompressor.pyd Sync BaseTool trunk (version r2599) into EDKII BaseTools. 2013-08-23 02:18:16 +00:00
Parser.py BaseTools: Eot: Remove unnecessary code 2025-07-01 09:51:38 +08:00
ParserWarning.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Report.py BaseTools: Eot: Remove unnecessary code 2025-07-01 09:51:38 +08:00