From 2b0cf9b3eb082f0be9f95bb8dcd237284167f10b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 3 Oct 2003 23:49:41 +0000 Subject: [PATCH] add BOOLEAN git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12962 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/asn1/lex.l | 1 + lib/asn1/parse.y | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/asn1/lex.l b/lib/asn1/lex.l index 5596f5d36..0c117e4ba 100644 --- a/lib/asn1/lex.l +++ b/lib/asn1/lex.l @@ -61,6 +61,7 @@ static unsigned lineno = 1; %% INTEGER { return INTEGER; } +BOOLEAN { return BOOLEAN; } IMPORTS { return IMPORTS; } FROM { return FROM; } SEQUENCE { return SEQUENCE; } diff --git a/lib/asn1/parse.y b/lib/asn1/parse.y index 9b755394b..e350f7c53 100644 --- a/lib/asn1/parse.y +++ b/lib/asn1/parse.y @@ -66,6 +66,7 @@ static void append (Member *l, Member *r); %token UTF8String NULLTYPE %token EXTERNAL DEFAULT %token DOTDOT DOTDOTDOT +%token BOOLEAN %token IMPORTS FROM %token OBJECT IDENTIFIER %token IDENT @@ -182,6 +183,7 @@ type : INTEGER { $$ = new_type(TInteger); } $$->subtype = $5; $$->application = $3; } + | BOOLEAN { $$ = new_type(TBoolean); } ; memberdecls : { $$ = NULL; }