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

How to run OpenFortranParserXML-0.6.1.jar successfully #13

Open
youcoding98 opened this issue Mar 23, 2021 · 2 comments
Open

How to run OpenFortranParserXML-0.6.1.jar successfully #13

youcoding98 opened this issue Mar 23, 2021 · 2 comments

Comments

@youcoding98
Copy link

I use the command: java fortran.ofp.FrontEnd --class fortran.ofp.XMLPrinter \ --output output.xml --verbosity 0~100 input.f torun,
but failed. Can it run successfully with only Java environment and no Python environment?Is this a separate command?
I ran this command successfully :java fortran.ofp.FrontEnd --verbose main.f90

@mbdevpl
Copy link
Owner

mbdevpl commented Mar 28, 2021

Yes, it can be ran independently. Indeed, in the readme in https://github.com/mbdevpl/open-fortran-parser-xml#how-to-run I wrote --verbosity 0~100 but also below that it is explained that it is a value between 0 and 100. 0~100 in this case means correct value range. If you provide a number between 0 and 100 inclusive, it will work as expected.

If you'd find some bits of the readme confusing and would like those bits to be clarified, I'd welcome a PR :)

@youcoding98
Copy link
Author

Thanks!Now I can run it successful. I read this program's code,find that FortranParser2008_FortranParserBase.java as the concrete file to achieve AST. For Example main_program() ,we can find it in this FortranParser2008_FortranParserBase.java.But I can't find this java file in this github program. This only is find in OpenFortranParse-0.8.5.jar. So I want to know how to achieve this file, Or How to override OpenFortranParse to modify this function? Or How to use the Github program to create the jar?
Thank you very much!

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

2 participants