From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: erik quanstrom Date: Mon, 10 Nov 2008 06:24:25 -0500 To: prem.mallappa@gmail.com, 9fans@9fans.net MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] plan9 lexer problem Topicbox-Message-UUID: 38234e42-ead4-11e9-9d60-3106f5b1d025 > %{ > %} > > %% > stop print("Stop!! recieved\n"); > start print("Start -> recieved\n"); > %% the fix for this should be to add #include #include between %{ and %} but this doesn't work because lex includes stdio.h before it processes %{ %}. you'll need to write a shim, fixlex.c, that goes like this #include #include #include "lex.yy.c" that is unless you want to dive into the lex source. :-) - erik