question: public static String stripComments ( String s , ParseResult result ) { int commentStart = s . indexOf ( ";" ) ; if ( commentStart != - 1 ) { s = s . substring ( 0 , commentStart ) ; result . commentStartPos = commentStart ; int index = s . indexOf ( " , " ) ; while ( index > - 1 ) { result . commentStartPos -= 2 ; index = s . indexOf ( " , " , index + 3 ) ; } } return s . trim ( ) ; }
target:  Removes comments from a line of code. Comments are recognised by their beginning ";"