Skip to content

Commit 3075600

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 4d0afa3 commit 3075600

6 files changed

Lines changed: 878 additions & 1402 deletions

File tree

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

Lines changed: 343 additions & 401 deletions
Large diffs are not rendered by default.

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
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
#
@@ -15,7 +14,13 @@
1514
#
1615
# Copyright (c) 2009 - 2010, Intel Corporation All rights reserved.
1716
#
18-
# SPDX-License-Identifier: BSD-2-Clause-Patent
17+
# This program and the accompanying materials are licensed and made available
18+
# under the terms and conditions of the BSD License which accompanies this
19+
# distribution. The full text of the license may be found at:
20+
# http://opensource.org/licenses/bsd-license.php
21+
#
22+
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
23+
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
1924
#
2025
##
2126

0 commit comments

Comments
 (0)