9eb80e91a6
* Added support for multi-line comments to the JLPPegParser grammar implementation. * Added a Java sample file. * Updated test script to add convenience functions for the java test file and for using a TracingParseRunner for parse runs. * Added an option, `--css-file`, to allow the caller to specify their own css file. * Added basic logic to the Processor class to detect source file types and build a parser and a generator for that source type. Support currently exists for the following languages: C (.c, .h), C++ (.cpp, .c++, .hpp, .h++), Erlang (.erl), Groovy (.groovy), Java (.java), JavaScript (.js).
27 lines
679 B
Java
27 lines
679 B
Java
package test;
|
|
|
|
import java.util.Array;
|
|
|
|
/** This is a test class. Mainly for testing my parser.
|
|
* It should work. And now we are just filing space.
|
|
* @author Jonathan Bernard
|
|
* @copyright JDB Labs 2011 */
|
|
public class Test {
|
|
|
|
/**
|
|
| @org test-ref
|
|
| This is an embedded comment.
|
|
| It spreads over at least 3 lines.
|
|
| And this is the third line.
|
|
*/
|
|
|
|
public static void main(String[] args) {
|
|
/** Yes, this is a hello world example. */
|
|
System.out.println("Hello World!");
|
|
}
|
|
|
|
/// This is a single-line comment block. */ /** Other comment
|
|
/// modifiers should not matter within this block.
|
|
/// @org last-doc
|
|
}
|