01: /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
02: * This file is part of Beaver Parser Generator. *
03: * Copyright (C) 2003,2004 Alexander Demenchuk <alder@softanvil.com>. *
04: * All rights reserved. *
05: * See the file "LICENSE" for the terms and conditions for copying, *
06: * distribution and modification of Beaver. *
07: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
08:
09: package beaver.spec.ast;
10:
11: /**
12: * AST root node
13: */
14: public class GrammarTreeRoot extends Node {
15: public final Declaration[] declarations;
16: public final Rule[] rules;
17:
18: public GrammarTreeRoot(Declaration[] declarations, Rule[] rules) {
19: this .declarations = declarations;
20: this .rules = rules;
21: }
22:
23: public void accept(TreeWalker walker) {
24: walker.visit(this);
25: }
26: }
|