Path: utzoo!attcan!uunet!mcsun!hp4nl!sci.kun.nl!atcmpe!ronald From: ronald@atcmp.nl (Ronald Pikkert) Newsgroups: comp.lang.c Subject: Re: yacc-a-dy YACC yacc, Help me HACK! Message-ID: <666@atcmpe.atcmp.nl> Date: 4 Oct 90 09:08:50 GMT References: <289@cti1.UUCP> Distribution: comp Organization: AT Computing, Nijmegen, The Netherlands Lines: 24 From article <289@cti1.UUCP>, by mpledger@cti1.UUCP (Mark Pledger): <> <> Could somebody please give me a hand with a lex & yacc problem. I am <> trying to build a small subset of the SQL language. For purposes of this <> question my yacc grammer is defined below. <> <> %% /* RULES */ <> {quotes} { <> yylval.string = yytext; yylval.string = strdup(yytext); ^^^^^^ <> return(QUOTES); <> } <> Always use dynamically allocated memory to hold matched patterns in the input. - Ronald Pikkert E-mail: ronald@atcmp.nl @ AT Computing b.v. Tel: 080 - 566880 Toernooiveld 6525 ED Nijmegen