Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news.misty.com!news.iecc.com!.POSTED!nerds-end From: Louis Krupp Newsgroups: comp.compilers Subject: Re: Best tools for writing an assembler? Date: Mon, 24 Feb 2014 15:39:50 -0700 Organization: Compilers Central Lines: 18 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <14-02-034@comp.compilers> References: <14-02-018@comp.compilers> <14-02-021@comp.compilers> <14-02-023@comp.compilers> <14-02-030@comp.compilers> <14-02-031@comp.compilers> NNTP-Posting-Host: news.iecc.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: miucha.iecc.com 1393297798 40843 64.57.183.58 (25 Feb 2014 03:09:58 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Tue, 25 Feb 2014 03:09:58 +0000 (UTC) Keywords: assembler Posted-Date: 24 Feb 2014 22:09:58 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:1113 On Mon, 24 Feb 2014 07:32:37 +0100, Sibastien Fricker wrote: >On 23/02/2014 17:22, noitalmost wrote: >> >> I wouldn't bother with any generation tools like flex or bison, unless >> you want to gain experience with those tools for some other project. .. >Sorry, but even if Flex/Bison are difficult to setup, writing a parser >by hand is not a good way to work. ... Everyone should hand-write a lexer and parser ... once. If you're designing the language syntax as you go, you'll design something that's easy to scan and parse. I agree with noitalmost that recursive descent is the way to go. Louis