codebleu icon indicating copy to clipboard operation
codebleu copied to clipboard

Fortran support

Open vintriguna opened this issue 1 year ago • 5 comments

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

vintriguna avatar Jun 18 '24 23:06 vintriguna

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!

k4black avatar Jun 19 '24 06:06 k4black

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!

vintriguna avatar Jun 24 '24 23:06 vintriguna

@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

k4black avatar Jul 09 '24 10:07 k4black

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 avatar Jul 12 '24 15:07 vintriguna

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

vintriguna avatar Oct 14 '24 00:10 vintriguna