]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Ecc/C.g
Sync EDKII BaseTools to BaseTools project r1903.
[mirror_edk2.git] / BaseTools / Source / Python / Ecc / C.g
index 6aa50460de27a6cc3311a25ef13da2cb61ad1b11..a34f5902bb7f96b074587eafde9c07dc2780c21a 100644 (file)
@@ -1,3 +1,15 @@
+/* @file\r
+ This file is used to be the grammar file of ECC tool\r
+\r
+ Copyright (c) 2009 - 2010, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+*/\r
 \r
 grammar C;\r
 options {\r
@@ -7,9 +19,49 @@ options {
     k=2;\r
 }\r
 \r
+@lexer::header{\r
+## @file\r
+# The file defines the Lexer for C source files.\r
+#\r
+# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.\r
+# This file is generated by running:\r
+# java org.antlr.Tool C.g\r
+#\r
+# Copyright (c) 2009 - 2010, Intel Corporation  All rights reserved.\r
+#\r
+# This program and the accompanying materials are licensed and made available\r
+# under the terms and conditions of the BSD License which accompanies this\r
+# distribution.  The full text of the license may be found at:\r
+#   http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+##\r
+}\r
+\r
 @header {\r
-    import CodeFragment\r
-    import FileProfile\r
+## @file\r
+# The file defines the parser for C source files.\r
+#\r
+# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.\r
+# This file is generated by running:\r
+# java org.antlr.Tool C.g\r
+#\r
+# Copyright (c) 2009 - 2010, Intel Corporation  All rights reserved.\r
+#\r
+# This program and the accompanying materials are licensed and made available\r
+# under the terms and conditions of the BSD License which accompanies this\r
+# distribution.  The full text of the license may be found at:\r
+#   http://opensource.org/licenses/bsd-license.php\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+##\r
+\r
+import CodeFragment\r
+import FileProfile\r
 }\r
 \r
 @members {\r
@@ -238,6 +290,7 @@ type_qualifier
        | 'EFIAPI'\r
        | 'EFI_BOOTSERVICE'\r
        | 'EFI_RUNTIMESERVICE'\r
+       | 'PACKED'\r
        ;\r
 \r
 declarator\r