X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/b5c212b61a73e905c94c7a488fa7676021a1dad6..b9f1d9a47a49c40e8f0a5006b492daba53f25b20:/src/named-ref.h?ds=inline diff --git a/src/named-ref.h b/src/named-ref.h new file mode 100644 index 00000000..9100296f --- /dev/null +++ b/src/named-ref.h @@ -0,0 +1,38 @@ +/* Named symbol references for Bison + + Copyright 2009 Free Software Foundation, Inc. + + This file is part of Bison, the GNU Compiler Compiler. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef NAMED_REF_H_ +# define NAMED_REF_H_ + +#include "uniqstr.h" +#include "location.h" + +typedef struct named_ref named_ref; + +struct named_ref +{ + uniqstr id; + location loc; +}; + +named_ref *named_ref_new (uniqstr id, location loc); + +void named_ref_free (named_ref *r); + +#endif /* !NAMED_REF_H_ */