Handle external declarations.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2480 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -67,7 +67,7 @@ static void append (Member *l, Member *r);
|
|||||||
}
|
}
|
||||||
|
|
||||||
%token INTEGER SEQUENCE OF OCTET STRING GeneralizedTime GeneralString
|
%token INTEGER SEQUENCE OF OCTET STRING GeneralizedTime GeneralString
|
||||||
%token BIT APPLICATION OPTIONAL EEQUAL TBEGIN END DEFINITIONS
|
%token BIT APPLICATION OPTIONAL EEQUAL TBEGIN END DEFINITIONS EXTERNAL
|
||||||
%token <name> IDENTIFIER
|
%token <name> IDENTIFIER
|
||||||
%token <constant> CONSTANT
|
%token <constant> CONSTANT
|
||||||
|
|
||||||
@@ -86,10 +86,18 @@ specification :
|
|||||||
| specification declaration
|
| specification declaration
|
||||||
;
|
;
|
||||||
|
|
||||||
declaration : type_decl
|
declaration : extern_decl
|
||||||
|
| type_decl
|
||||||
| constant_decl
|
| constant_decl
|
||||||
;
|
;
|
||||||
|
|
||||||
|
extern_decl : IDENTIFIER EXTERNAL
|
||||||
|
{
|
||||||
|
Symbol *s = addsym($1);
|
||||||
|
s->stype = Stype;
|
||||||
|
}
|
||||||
|
;
|
||||||
|
|
||||||
type_decl : IDENTIFIER EEQUAL type
|
type_decl : IDENTIFIER EEQUAL type
|
||||||
{
|
{
|
||||||
Symbol *s = addsym ($1);
|
Symbol *s = addsym ($1);
|
||||||
|
Reference in New Issue
Block a user