Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# Example #176

Open
mutigozel opened this issue Jun 9, 2020 · 8 comments
Open

C# Example #176

mutigozel opened this issue Jun 9, 2020 · 8 comments

Comments

@mutigozel
Copy link

Can you provide an example on how to generate C# output from jjt?

@new-javacc
Copy link
Contributor

new-javacc commented Jun 14, 2020 via email

@Yokosama
Copy link

Yokosama commented Jul 8, 2020

cc'ing the group! Thanks for your interesting in C# code generation. You can simply run javacc with -CODE_GENERATOR"'org.javacc.csharp.CodeGenerator" option and it should work. Make sure include namespace. Let me know if you still have issues.

Can you provide an example on how to generate C# output from jjt? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#176>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE2B3LIKPLACOX6AHGZSMOLRVW5RBANCNFSM4NZBFEHA.

i tried this (version: javacc 7.0.9), but warning: -CODE_GENERATOR is bad option will be ignored ? i miss something?

@zosrothko
Copy link
Member

You should use javacc-8.0.0-SNAPSHOT with -CODE_GENERATOR="C#"

@Yokosama
Copy link

Yokosama commented Jul 8, 2020

You should use javacc-8.0.0-SNAPSHOT with -CODE_GENERATOR="C#"

i download the branch 8.0.0 source code, but not found javacc-8.0.0-SNAPSHOT, where is it? thank you;
i need compile the source code ?

@zosrothko
Copy link
Member

zosrothko commented Jul 8, 2020

Yes, at the javacc-8.0.0 directory run: mvn clean install
or without running integration tests: mvn clean install -Dmaven.test.skip=true

@Yokosama
Copy link

Yokosama commented Jul 8, 2020

Yes, at the javacc-8.0.0 directory run: mvn clean install

thank you

@paulirwin
Copy link

The git submodule for the codegen folder on the 8.0.0 branch does not exist: https://github.com/javacc/codegenerator

Is there any guidance on how to get the 8.0.0 branch to compile? Thanks in advance!

@zosrothko
Copy link
Member

zosrothko commented Jun 29, 2021

@paulirwin the 8.0.0 branch of this JavaCC repository is a staled branch that I deleted rigth now. If you want to get the JavaCC-8 version and speciallly the C# generator, please checkout this javacc-8-csharp repository and more generally all javacc-8-* repos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants