Skip to content

Commit 3269c99

Browse files
committed
BaseTools: Ecc: Update to ANTLR 4.13.2
ANTLR 4.9 is broken in python 3.13 because it uses a library in the autogenerated files that is removed. This updates to 4.13.2 and also updates the autogen files, which contain support for python 3.13 as well as backwards compat. Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
1 parent 64c9d1e commit 3269c99

6 files changed

Lines changed: 858 additions & 1408 deletions

File tree

BaseTools/Source/Python/Ecc/CParser4/CLexer.py

Lines changed: 336 additions & 403 deletions
Large diffs are not rendered by default.

BaseTools/Source/Python/Ecc/CParser4/CListener.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
# Generated from C.g4 by ANTLR 4.9
1+
# Generated from C.g4 by ANTLR 4.13.2
22
from antlr4 import *
3-
if __name__ is not None and "." in __name__:
3+
if "." in __name__:
44
from .CParser import CParser
55
else:
66
from CParser import CParser
77

8-
98
## @file
109
# The file defines the parser for C source files.
1110
#
1211
# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.
1312
# This file is generated by running:
14-
# java org.antlr.Tool C.g
13+
# java org.antlr.Tool C.g4
1514
#
1615
# Copyright (c) 2009 - 2010, Intel Corporation All rights reserved.
17-
#
1816
# SPDX-License-Identifier: BSD-2-Clause-Patent
19-
#
2017
##
2118

2219
import Ecc.CodeFragment as CodeFragment

0 commit comments

Comments
 (0)