java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
org.sablecc.ant.taskdef.Sablecc
- All Implemented Interfaces:
- org.apache.tools.ant.types.selectors.SelectorContainer
- public class Sablecc
- extends org.apache.tools.ant.taskdefs.MatchingTask
Parser generator task based on SableCC parser generator.
This task requires the following arguments:
and is based on MatchingTask which means includes and exludes
are done in a standard fashion.
| Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
srcDir
private java.io.File srcDir
destDir
private java.io.File destDir
withTools
private boolean withTools
Sablecc
public Sablecc()
setSrc
public void setSrc(java.lang.String d)
- Sets the grammars directory name.
setWithtools
public void setWithtools(boolean b)
setOutputDirectory
public void setOutputDirectory(java.lang.String d)
- Sets the destinion where the generated files should be placed.
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Description copied from class:
org.apache.tools.ant.Task
- Called by the project to let the task do its work. This method may be
called more than once, if the task is invoked more than once.
For example,
if target1 and target2 both depend on target3, then running
"ant target1 target2" will run all tasks in target3 twice.
doSableccCompile
private void doSableccCompile(java.lang.String[] files)
- Peforms a generation of parsers using the SableCC Compiler Compiler.