jlp/resources/main/Test.java
Jonathan Bernard 9eb80e91a6 Support for multi=line comments, detects file type.
* 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).
2011-12-25 22:07:48 -06:00

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
}