v1.7: added --no-source option, foxpro, SQL support.

* Added `--no-source` option. By default JLP copies the original source code
  into the output directory. THis option disables that behavior.
* Added basic error handling after parsing input files: input files that do not
  parse correctly are ignored. Beforehand they were causing null pointer
  exceptions in the second parse phase of the processor.
* Made the top-level support directories hidden in the output root (ie. `/.css`
  instead of `/css`.
* Added configuration to handle Visual FoxPro files (no syntax highlighter
  available) and SQL files.
* Expanded the list of binary file types. Binary and unknown file types are not
  parsed.
This commit is contained in:
Jonathan Bernard
2012-01-30 13:39:54 -06:00
parent 6bc3235802
commit 832c68a5c5
5 changed files with 93 additions and 27 deletions

View File

@ -65,6 +65,19 @@ public class JLPPegParser extends BaseParser<Object> implements JLPParser {
MDOC_END = NOTHING;
SDOC_START = String(sdocStart).label("SDOC_START"); }
/**
* #### Single-line comments only constructor.
* This is the same as the previous constructor except it allows the caller
* to define several different syntax for single-line comments. This is
* useful for languages that support several different syntaxes for comment
* lines (e.g. bash, Visual FoxPro).
*/
public JLPPegParser(List sdocStarts) {
MDOC_START = NOTHING;
MDOC_LINE_START = NOTHING;
MDOC_END = NOTHING;
SDOC_START = FirstOf(sdocStarts.toArray()).label("SDOC_START"); }
/**
* #### Default constructor.
* The default constructor creates a JLPPegParser configured to recognize