Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #1541

Announcing Classp--a classier way to parse

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED!nerds-end
From David Gudeman <dave.gudeman@gmail.com>
Newsgroups comp.compilers
Subject Announcing Classp--a classier way to parse
Date Fri, 13 Mar 2015 09:38:34 -0700 (PDT)
Organization Compilers Central
Lines 16
Sender news@iecc.com
Approved comp.compilers@iecc.com
Message-ID <15-03-005@comp.compilers> (permalink)
NNTP-Posting-Host news.iecc.com
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 8bit
X-Trace miucha.iecc.com 1426266364 57717 2001:470:1f07:1126:0:676f:7373:6970 (13 Mar 2015 17:06:04 GMT)
X-Complaints-To abuse@iecc.com
NNTP-Posting-Date Fri, 13 Mar 2015 17:06:04 +0000 (UTC)
Keywords parse, tools
Posted-Date 13 Mar 2015 13:06:04 EDT
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:1541

Show key headers only | View raw


Classp demonstrates a new way to parse using class patterns instead of
grammars. Class patterns are not just a different way to write a grammar (as
for example parser combinators are), they are a significantly different way to
describe a language. Class patterns are designed for compiler writers,
transalator writers, and others who need to not only parse a language, but
produce an abstract syntax tree.

Grammar-based systems require you to either live with a parse tree or write
and maintain code to convert the parse tree into an abstract syntax tree.
Classp is different: you start with the abstract syntax tree, written in
modern object-oriented style with inheritance and declared types, and you
write class patterns for each class. Classp takes this specification and
generates the lexer in Flex, the parser in Bison, and the abstract syntax tree
in C++11.

To learn more, visit http://google.github.io/classp.

Back to comp.compilers | Previous | Next | Find similar | Unroll thread


Thread

Announcing Classp--a classier way to parse David Gudeman <dave.gudeman@gmail.com> - 2015-03-13 09:38 -0700

csiph-web