aslparser.y (98e0ffaefb0f241cda3a72395d3be04192ae0d47) aslparser.y (f8146b882bc156c1d8ddf14bbea67253ebc064bb)
1%{
2/******************************************************************************
3 *
4 * Module Name: aslparser.y - Master Bison/Yacc input file for iASL
5 *
6 *****************************************************************************/
7
8/*
1%{
2/******************************************************************************
3 *
4 * Module Name: aslparser.y - Master Bison/Yacc input file for iASL
5 *
6 *****************************************************************************/
7
8/*
9 * Copyright (C) 2000 - 2015, Intel Corp.
9 * Copyright (C) 2000 - 2016, Intel Corp.
10 * All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions, and the following disclaimer,
17 * without modification.

--- 35 unchanged lines hidden (view full) ---

53 * Global Notes:
54 *
55 * October 2005: The following list terms have been optimized (from the
56 * original ASL grammar in the ACPI specification) to force the immediate
57 * reduction of each list item so that the parse stack use doesn't increase on
58 * each list element and possibly overflow on very large lists (>4000 items).
59 * This dramatically reduces use of the parse stack overall.
60 *
10 * All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions, and the following disclaimer,
17 * without modification.

--- 35 unchanged lines hidden (view full) ---

53 * Global Notes:
54 *
55 * October 2005: The following list terms have been optimized (from the
56 * original ASL grammar in the ACPI specification) to force the immediate
57 * reduction of each list item so that the parse stack use doesn't increase on
58 * each list element and possibly overflow on very large lists (>4000 items).
59 * This dramatically reduces use of the parse stack overall.
60 *
61 * ArgList, TermList, Objectlist, ByteList, DWordList, PackageList,
61 * ArgList, TermList, ByteList, DWordList, PackageList,
62 * ResourceMacroList, and FieldUnitList
63 */
64
65void *
66AslLocalAllocate (
67 unsigned int Size);
68
69/* Bison/yacc configuration */

--- 24 unchanged lines hidden (view full) ---

94 char *s;
95 ACPI_PARSE_OBJECT *n;
96}
97
98/*
99 * These shift/reduce conflicts are expected. There should be zero
100 * reduce/reduce conflicts.
101 */
62 * ResourceMacroList, and FieldUnitList
63 */
64
65void *
66AslLocalAllocate (
67 unsigned int Size);
68
69/* Bison/yacc configuration */

--- 24 unchanged lines hidden (view full) ---

94 char *s;
95 ACPI_PARSE_OBJECT *n;
96}
97
98/*
99 * These shift/reduce conflicts are expected. There should be zero
100 * reduce/reduce conflicts.
101 */
102%expect 89
102%expect 101
103
104/*! [Begin] no source code translation */
105
106/*
107 * The M4 macro processor is used to bring in the parser items,
108 * in order to keep this master file smaller, and to break up
109 * the various parser items.
110 */

--- 6 unchanged lines hidden (view full) ---

117/* Production types/names */
118
119m4_include(asltypes.y)
120%%
121
122/* Production rules */
123
124m4_include(aslrules.y)
103
104/*! [Begin] no source code translation */
105
106/*
107 * The M4 macro processor is used to bring in the parser items,
108 * in order to keep this master file smaller, and to break up
109 * the various parser items.
110 */

--- 6 unchanged lines hidden (view full) ---

117/* Production types/names */
118
119m4_include(asltypes.y)
120%%
121
122/* Production rules */
123
124m4_include(aslrules.y)
125m4_include(aslcstyle.y)
126m4_include(aslresources.y)
125%%
126
127/*! [End] no source code translation !*/
128
129/* Local support functions in C */
130
131m4_include(aslsupport.y)
127%%
128
129/*! [End] no source code translation !*/
130
131/* Local support functions in C */
132
133m4_include(aslsupport.y)