Hong Phuc
--
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+u...@googlegroups.com.
I am going to try to use this plugin on my enterprise parsers next weeks. As I told you in private, this new plugin is a huge improve, but I think we can improve two things:
- We need to "commit" that to mvn central repositories.
- I think we can make the plugin configuration easier, allowing only one grammar per execution (and not a map of them).
- If some concrete project need to have more than one grammar, it is possible to execute the plugin n-times.
2013/2/18 Paweł Cesar Sanjuan Szklarz <paw...@gmail.com>
Great, thank you!
On Mon, Feb 18, 2013 at 3:57 PM, Hong Phuc Bui <phuc...@gmail.com> wrote:
Hi,
For some days I just have write the two plugins because of my need. Now I just want to share them
in community.
Project: https://github.com/verylazyboy/maven-plugin/
POM example:
https://github.com/verylazyboy/maven-plugin/blob/master/plugin-user-test/pom.xml
I just redistribute the binary of SableCC 3.7 and ObjectMarco 4 beta 4 hier
https://github.com/verylazyboy/mvn-repo
These artifacts are necessary for the plugin.
I hope they could be useful for someone.
Best wish.
Hong Phuc
--
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+unsubscribe@googlegroups.com.
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+u...@googlegroups.com.
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+u...@googlegroups.com.
--
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+u...@googlegroups.com.
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+u...@googlegroups.com.
Etienne Gagnon, Ph.D. http://sablecc.org
Hi All,
It seems that my old address cannot write to the list without moderation.
I just wanted to say that it is quite easy now to publish to the maven central repository.
The new guidelines are here [1]
Every project can be published to the central repository, no matter where it is hosted (I published several of my projects there that are all hosted on github)
For the ownership of the project, it is probably best to have the approval of the author to avoid potential conflicts even if I cannot remember of any constraint on this from sonatype.
[...]
--
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+unsubscribe@googlegroups.com.
Hello,
I use SableCC to generate the parser for compilers.I do not know what ObjectMacro would do in a project built with Maven.
What do you use it for?
Peter
Etienne Gagnon, Ph.D. http://sablecc.org
[...]
Etienne, could you please make a "facade" method in the class SableCC? I explain it below.
During I has tried to integrate the SableCC with some external system like Netbeans and Maven, I have found that
the method "SableCC.main(String[] argv)" does not throw any exceptions but just call System.exit(1) to tell
the user that something is wrong in the grammar file(s) or arguments.
If I call this method in maven as a plugin,
the maven process just quits silently. Of course the error message is printed in screen, but I cannot get the error
programmatically any make some convenient task, for example print "BUILD FAIL" on screen, throw
Mojo exception to tell maven process that the build was not success, ect.
In Netbeans I could not get any info that the build was fail or success and therefore I could not change the status
text in the status bar.
So in both cases I used the method SableCC.processgrammar(String file, String directory). It throws exceptions
to signal that something was wrong. I can catch them and do necessary task. But with this method
I cannot set the options "--inline-max-alts" and some others. Since they are private I can access them through
the method main(String[] argv).
I think the implementation in the class ObjectMacro.java /SableCC.java version 4 is more extensible. I can use the method
public static void compile(String[] arguments)/processCommandLine(String[] arguments) to compile the files with options,
catch exceptions and write the appropriate tasks for each exceptions in each system, like Netbeans or Maven.
[...]
Hi Maven fans, and not fans
I've released new maven plugin in my github repo. THe configuration is improved
like sugession from Gonzalo. Thanks you. The plugin is now smaller, maybe faster
if I can fork the execute-tag to compile more than once grammar each times.
And it was signed with gpg by ... me.
I've even try to publish my plugins in sonatype (maven central), but I must wait
some days for and ID or ticket or whatever, so that I has a access to the repos.
(I'm not sure, I think so).
So, have a nice weekend.
On 02/20/2013 11:21 AM, Gonzalo Ortiz Jaureguizar wrote:
Well... people who use maven use it because it is simple and standard. I don't think that use strange ways like donwload the library from other place is a good idea.
I can't talk for other SableCC users, but the thing I want is to have an standard plugin in mvn repositories, write a simple xml section and download all necesary libraries automatically. I already wait for it a lot of months, I think I can wait a some more.
--
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+unsubscribe@googlegroups.com.
Great news!Thank you!
2013/2/24 Bui Hong Phuc <phuc...@gmail.com>
Hi Maven fans, and not fans
I've released new maven plugin in my github repo. THe configuration is improved
like sugession from Gonzalo. Thanks you. The plugin is now smaller, maybe faster
if I can fork the execute-tag to compile more than once grammar each times.
And it was signed with gpg by ... me.
I've even try to publish my plugins in sonatype (maven central), but I must wait
some days for and ID or ticket or whatever, so that I has a access to the repos.
(I'm not sure, I think so).
So, have a nice weekend.
On 02/20/2013 11:21 AM, Gonzalo Ortiz Jaureguizar wrote:
Well... people who use maven use it because it is simple and standard. I don't think that use strange ways like donwload the library from other place is a good idea.
I can't talk for other SableCC users, but the thing I want is to have an standard plugin in mvn repositories, write a simple xml section and download all necesary libraries automatically. I already wait for it a lot of months, I think I can wait a some more.
--
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
-- 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 Google Groups "SableCC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sablecc+u...@googlegroups.com.
<build>
<plugins>
<plugin>
<groupId>com.peterlavalle</groupId>
<artifactId>sablecc-maven-plugin</artifactId>
<version>3.7</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
You received this message because you are subscribed to a topic in the Google Groups "SableCC" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sablecc/SmACbelVDfQ/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to sablecc+u...@googlegroups.com.
I tend to agree. And there is some precedence for this within the SableCC project. SableCC does have a class (classes?) to make SableCC appear as an Ant task, so why not one for Maven?