Path: csiph.com!1.us.feeder.erje.net!feeder.erje.net!2.us.feeder.erje.net!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder1.iad1.usenetexpress.com!216.166.98.84.MISMATCH!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: George Neuner Newsgroups: comp.compilers Subject: Re: some guideline to lexer or parser Date: Mon, 27 Feb 2017 15:39:11 -0500 Organization: A noiseless patient Spider Lines: 32 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <17-02-006@comp.compilers> References: <17-02-005@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Injection-Info: miucha.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="75615"; mail-complaints-to="abuse@iecc.com" Keywords: tools Posted-Date: 27 Feb 2017 21:39:41 EST X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:1820 On Mon, 27 Feb 2017 04:53:24 +0000 (UTC), chano wrote: >is there any guideline document on simple lexer or parser on the internet? >I try to build routine to parse simple < data, data, data > format and I >find it it's no easy task Too complicated for regex? >[There's Crenshaw's Let's Build a Compiler which is 20 years >old but still pretty good. -John > >ftp://ftp.iecc.com/pub/file/crenshaw-txt.zip >] There are a number of guides to writing parsers, but they necessarily are language specific (which the OP didn't mention) and many are above beginner level. Maybe these? C: https://stlab.adobe.com/wiki/index.php/How_To_Write_A_Simple_Lexical_Analyzer_or_Parser Python: http://parsingintro.sourceforge.net/ Java: http://cogitolearning.co.uk/?p=523 George