// import edu.neu.ccs.demeter.dj.*; import java.util.*; import java.lang.reflect.*; Main = . //DH-full //-------------------- // Copyright (C) 1991 Northeastern University. // Permission is granted to any individual or institution to use, copy, modify, // and distribute this class dictionary, provided that this complete copyright // and permission notice is maintained, intact, in all copies and supporting // documentation. Cd_graph = < adjacencies > Nlist(Adjacency) EOF. Adjacency = < source > Vertex < ns > Neighbors "." *l . Neighbors : Neighbors_wc . Neighbors_wc : Construct_ns | Alternat_ns common < construct_ns > List(Any_vertex). Construct_ns = *s "=" *s. Alternat_ns = *s ":" *s < alternat_ns > Bar_list(Term) [ Common]. Common = "common". Any_vertex : Opt_labeled_term | Optional_term | Syntax_vertex . Vertex = < vertex_name > Ident *s. Syntax_vertex : Regular_syntax common. Regular_syntax = < string > String . Opt_labeled_term : Labeled | Regular common Term. Regular = . Labeled = *s "<" < label_name > Ident ">" *s. Term : Normal common Vertex . Normal = . Optional_term = "[" Sandwich(Opt_labeled_term) "]". // parameterized classes List(S) ~ {S}. Nlist(S) ~ S {S}. Bar_list(S) ~ S {"|"*s S}. Comma_list(S) ~ S {"," S}. Sandwich(S) = List(Syntax_vertex) S List(Syntax_vertex) . MyVisitor : XMLVisitor common extends Visitor. XMLVisitor = .