From mboxrd@z Thu Jan 1 00:00:00 1970 References: <201202271323.q1RDNuL5007269@freefriends.org> In-Reply-To: Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Message-Id: <6111913F-25EB-4182-8E3B-357446F05655@bitblocks.com> Content-Transfer-Encoding: quoted-printable From: Bakul Shah Date: Tue, 28 Feb 2012 08:46:33 -0800 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] Config File parsing Topicbox-Message-UUID: 6572f0de-ead7-11e9-9d60-3106f5b1d025 I have almost always used a handwritten lexer as it seemed about the same am= ount of work and the end result is much smaller and easier to understand and= lexers for different languages are not all that different so once you've wr= itten one it is pretty easy to write another; and somehow lex or flex interf= ace never felt quite right. On Feb 27, 2012, at 8:03 PM, Nick LaForge wrote: > Are you certain you want to use Lex? If no, you may like this > fascinating and instructive lecture by Rob Pike, which solves a lexing > problem using Golang: http://www.youtube.com/watch?v=3DHxaD_trXwRE >=20 > If you have "The Unix Programming Environment" handy, you will also > find a lucid tutorial of Lex and Yacc both (in the later chapters). >=20 > Nick >=20 > On 2/27/12, arnold@skeeve.com wrote: >> O'Reilly's "lex & yacc" is somewhat more user-friendly a reference than >> the dragon book, although the latter certainly has its value. :-) >>=20 >> Arnold >>=20 >>=20 >=20