In particular, SableCC 3.7 is now able to handle the Java 1.7
grammar ( http://sablecc3.sablecc.org/wiki/Java-1.7 ).
Have fun with it!
Etienne
-- Etienne Gagnon, Ph.D. http://sablecc.org
I'll update the netbeans feature using this new feature.
--
-- You received this message because you are subscribed to the SableCC group. To post to this group, send email to sab...@googlegroups.com. To unsubscribe from this group, send email to sablecc+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/sablecc?hl=en
--
-- You received this message because you are subscribed to the SableCC group. To post to this group, send email to sab...@googlegroups.com. To unsubscribe from this group, send email to sablecc+u...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/sablecc?hl=en
--
-- You received this message because you are subscribed to the SableCC group. To post to this group, send email to sab...@googlegroups.com. To unsubscribe from this group, send email to sablecc+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/sablecc?hl=en
--
-- You received this message because you are subscribed to the SableCC group. To post to this group, send email to sab...@googlegroups.com. To unsubscribe from this group, send email to sablecc+u...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/sablecc?hl=en
In the java class, this code calls the sablecc java method that genererates the lexer and parser:
org.sablecc.sablecc.SableCC.processGrammar(grammar, new File(outputDirectory));
<dependency> <groupId>sablecc</groupId> <artifactId>sablecc</artifactId> <version>3.2-1</version> </dependency>
As you can see, the "code part" is almost trivial. The hardest task is to upload new versions to mvn central repositories. In this page people from mvn explain the process.
Of course we can upload library and plugin as a single bundle, but I think is better to deploy the library separated from the plugin. That could be useful if someone has a very strange project that generates parsers "on the fly"
Gonzalo
Hi Gonzalo,
Are you suggesting to make sablecc library part of maven plugin? I haven't been able to get developer access to the maven plugin project.
Alexander