From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.42.214.70 with SMTP id gz6mr5118573icb.3.1434613907400; Thu, 18 Jun 2015 00:51:47 -0700 (PDT) X-Received: by 10.140.81.149 with SMTP id f21mr187337qgd.8.1434613907369; Thu, 18 Jun 2015 00:51:47 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!h15no3688998igd.0!news-out.google.com!k20ni2490qgd.0!nntp.google.com!z60no1870519qgd.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 18 Jun 2015 00:51:47 -0700 (PDT) In-Reply-To: <85h9q68bf8.fsf@stephe-leake.org> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.55.208.161; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 91.55.208.161 References: <878uc3r2y6.fsf@adaheads.sparre-andersen.dk> <85twupvjxo.fsf@stephe-leake.org> <81ceb070-16fe-4578-a09a-eb11a2bbb664@googlegroups.com> <162zj7c2l0ykp$.1rxias18vby83.dlg@40tude.net> <856172bk80.fsf@stephe-leake.org> <26ccc147-7a15-48d7-8808-3248edfbf433@googlegroups.com> <85k2v3aeyv.fsf@stephe-leake.org> <85h9q68bf8.fsf@stephe-leake.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: OpenToken: Parsing Ada (subset)? From: AdaMagica Injection-Date: Thu, 18 Jun 2015 07:51:47 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:26367 Date: 2015-06-18T00:51:47-07:00 List-Id: Am Mittwoch, 17. Juni 2015 19:58:06 UTC+2 schrieb Stephen Leake: > Ok. I guess I'd like to see some actual examples of hand-written lexers. > The one in OpenToken is not inspiring to me; that's why I got rid of it > for FastToken (it's definitely easier for me to write regexps than to > write another OpenToken recognizer (= lexer module)). I found it very simple to write the multitude of recognizers needed for the Ada, Java, HTML lexers I wrote for OpenToken. Maybe not inspiring, but simple. OK, forget the HTML lexer - it's unsatisfying. HTML syntax is uncomparable to Ada's.