01: /*
02: * xtc - The eXTensible Compiler
03: * Copyright (C) 2005-2007 Robert Grimm
04: *
05: * This program is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU General Public License
07: * version 2 as published by the Free Software Foundation.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17: * USA.
18: */
19: package xtc.parser;
20:
21: import java.util.List;
22:
23: import xtc.tree.Attribute;
24:
25: /**
26: * A partial production.
27: *
28: * @author Robert Grimm
29: * @version $Revision: 1.10 $
30: */
31: public abstract class PartialProduction extends Production {
32:
33: /**
34: * Create a new partial production.
35: *
36: * @param attributes The list of attributes.
37: * @param dType The declared type.
38: * @param name The name.
39: * @param choice The choice.
40: */
41: public PartialProduction(List<Attribute> attributes, String dType,
42: NonTerminal name, OrderedChoice choice) {
43: super (attributes, dType, name, null, choice);
44: }
45:
46: public boolean isPartial() {
47: return true;
48: }
49:
50: }
|