rmsj / strip_comments

Go exercise - removing comments from source code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang exercise

Function that receives a string containing a Java source code and removes all the single line and multi line comments

makefile

  • Run the function with the hardcoded example on the main function make run
  • Run tests make test

TODO

  • Make it remove the empty lines that had only comments on it without messing with code indentation.

About

Go exercise - removing comments from source code


Languages

Language:Go 97.1%Language:Makefile 2.9%