00001 /* (c) 2008,2009 Jonathan Hogg and Andreas Grothey, University of Edinburgh 00002 * 00003 * This file is part of SML. 00004 * 00005 * SML is free software: you can redistribute it and/or modify it under the 00006 * terms of the GNU Lesser General Public License as published by the Free 00007 * Software Foundation, using version 3 of the License. 00008 * 00009 * SML is distributed in the hope that it will be useful, but WITHOUT ANY 00010 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00012 * details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public License 00015 * along with this program. If not, see http://www.gnu.org/licenses/. 00016 */ 00017 #ifndef DATANODES_H 00018 #define DATANODES_H 00019 00020 #include "nodes.h" 00021 #include "data.tab.h" 00022 00024 class SetSpec : public SyntaxNode { 00025 public: 00026 const SyntaxNode *tmpl; 00027 const ListNode *list; 00028 00029 public: 00030 SetSpec(const SyntaxNode *new_tmpl, const ListNode *new_list) : 00031 SyntaxNode(TOKSETSPEC), tmpl(new_tmpl), list(new_list) {} 00032 }; 00033 00034 #endif