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

Fortran support #51

Open
vintriguna opened this issue Jun 18, 2024 · 5 comments
Open

Fortran support #51

vintriguna opened this issue Jun 18, 2024 · 5 comments

Comments

@vintriguna
Copy link

vintriguna commented Jun 18, 2024

Hello @k4black ,
How might I be able to add support for Fortran? Thanks

@k4black
Copy link
Owner

k4black commented Jun 19, 2024

Hey,
You can check how the parsers for the other languages are working and add the Fortran the similar way!

  1. Add tree sitter for Fortran
  2. Write tree parser
  3. Add Fortran constant in available languages
  4. Add tests
  5. Update main and evaluation app readme

It would be great to see you PR!

@vintriguna
Copy link
Author

vintriguna commented Jun 24, 2024

Hey @k4black,
Thanks very much for your response. I addressed steps 1, 3, 4, and 5 of your comment, but I am having a little bit of trouble with 2nd step, writing the parser.

I would definitely love to create a PR, but do you know if there are any guides or tutorials I can follow to help guide me in creating the parser? I did read the source code and DFG functions but unfortunately there aren't any comments or documentation so it's a bit difficult to figure out.

If you could point me to any guides/tutorial I would greatly appreciate it and I look forward to submitting a PR soon after. Thank you!

@k4black
Copy link
Owner

k4black commented Jul 9, 2024

@vintriguna Sorry, not much help here from my side =(
This is the original code of the microsoft (yep, no comments and pretty unreadable). I could not point any tutorials, just suggest to start with cpp parser and try to resolve this riddle

@vintriguna
Copy link
Author

Hi @yijunyu I noticed you were able to create the Rust parser. I am trying to do the same for Fortran, but I am running into difficulties because of the lack of comments and documentation, so I was wondering if you could point me towards any resources or guides that could be of use? Thank you very much!

@vintriguna
Copy link
Author

Hi @k4black , I made a PR for Fortran support. Thank you!

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