solomono / kiama

Automatically exported from code.google.com/p/kiama
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Integrate with Rats! front-ends #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For many purposes combinator-based parsers are not ideal since details like 
tree construction need 
to be specified manually.  Hence, we want to also support some methods for 
getting tree data into 
Kiama  code using generated parsers.  Rats! seems like a good choice since it 
has the expressibility 
of parsing expression grammars plus good facilities for modular grammars.

The current Rats! generates Java parsers which we can call from Scala, but 
difficulties are created if 
we want to build Scala trees.

Original issue reported on code.google.com by inkytonik on 5 Nov 2009 at 4:55

GoogleCodeExporter commented 9 years ago

Original comment by inkytonik on 6 Nov 2009 at 1:29

GoogleCodeExporter commented 9 years ago

Original comment by inkytonik on 10 Nov 2009 at 5:11

GoogleCodeExporter commented 9 years ago
Done, at least in a basic fashion.  As a separate project, we now have the 
sbt-rats plugin which lets us include Rats! specs in our sbt projects 
(http://sbt-rats.googlecode.com).  A Java parser is automatically generated.  
sbt-rats also supports some option transformation of the Java to make it easier 
to use Scala actions and positions.

Original comment by inkytonik on 26 Jul 2010 at 5:18