Fixed the ant build's output directory
This commit is contained in:
parent
4ad31c0570
commit
f71a9905da
|
@ -1,4 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
|
||||
<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AFTER_CLEAN_TARGETS" value="jar,"/>
|
||||
<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AUTO_TARGETS" value="jar,"/>
|
||||
<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_CLEAN_TARGETS" value="clean,"/>
|
||||
<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_MANUAL_TARGETS" value="jar,"/>
|
||||
|
@ -13,6 +14,6 @@
|
|||
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="LispInterpreter"/>
|
||||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/LispInterpreter/build.xml}"/>
|
||||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="incremental,auto,clean"/>
|
||||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,auto,clean"/>
|
||||
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
|
||||
</launchConfiguration>
|
4
.project
4
.project
|
@ -22,10 +22,6 @@
|
|||
<key>LaunchConfigHandle</key>
|
||||
<value><project>/.externalToolBuilders/Ant_Builder.launch</value>
|
||||
</dictionary>
|
||||
<dictionary>
|
||||
<key>incclean</key>
|
||||
<value>true</value>
|
||||
</dictionary>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.source=1.8
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
|
||||
<target name="compile">
|
||||
<javac srcdir="${src.dir}"
|
||||
destdir="${build.dir}"
|
||||
includeantruntime="false" />
|
||||
</target>
|
||||
|
||||
|
@ -38,8 +39,7 @@
|
|||
parser/*.java,
|
||||
eval/*.java,
|
||||
error/*.java,
|
||||
main/*.java"
|
||||
excludes="main/LispInterpreter2.java" />
|
||||
main/*.java" />
|
||||
<tag name="postcondition" description="Postcondition:" />
|
||||
</javadoc>
|
||||
</target>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,65 +0,0 @@
|
|||
/*
|
||||
* Name: Mike Cifelli
|
||||
* Course: CIS 443 - Programming Languages
|
||||
* Assignment: Lisp Parser
|
||||
*/
|
||||
|
||||
package main;
|
||||
|
||||
import parser.*;
|
||||
import error.ErrorManager;
|
||||
import java.io.*;
|
||||
|
||||
/**
|
||||
* <code>LispParserDriver</code> is a program that takes the name of a file
|
||||
* as a command-line argument, creates an internal representation of the
|
||||
* S-expressions found in the file and prints them to the console. If no file
|
||||
* name is provided at the command-line, this program will read from standard
|
||||
* input.
|
||||
*/
|
||||
public class LispParserDriver {
|
||||
|
||||
/**
|
||||
* Create internal representations of the S-expressions found in the file
|
||||
* whose name was given as a command-line argument and print them to the
|
||||
* console. If no file name was given, retrieve the S-expressions from
|
||||
* standard input.
|
||||
*
|
||||
* @param args
|
||||
* the command-line arguments:
|
||||
* <ul>
|
||||
* <li><code>args[0]</code> - file name (optional)</li>
|
||||
* </ul>
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
LispParser parser = null;
|
||||
|
||||
if (args.length > 0) {
|
||||
// a file name was given at the command-line, attempt to create a
|
||||
// 'LispParser' on it
|
||||
try {
|
||||
parser = new LispParser(new FileInputStream(args[0]), args[0]);
|
||||
} catch (FileNotFoundException e) {
|
||||
ErrorManager.generateError(e.getMessage(),
|
||||
ErrorManager.CRITICAL_LEVEL);
|
||||
}
|
||||
} else {
|
||||
// no file name was given, create a 'LispParser' on standard input
|
||||
parser = new LispParser(System.in, "System.in");
|
||||
}
|
||||
|
||||
while (! parser.eof()) {
|
||||
try {
|
||||
SExpression sexpr = parser.getSExpr();
|
||||
|
||||
System.out.println(sexpr.toString());
|
||||
} catch (RuntimeException e) {
|
||||
ErrorManager.generateError(e.getMessage(), 2);
|
||||
} catch (IOException e) {
|
||||
ErrorManager.generateError(e.getMessage(),
|
||||
ErrorManager.CRITICAL_LEVEL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
|
@ -1,69 +0,0 @@
|
|||
/*
|
||||
* Name: Mike Cifelli
|
||||
* Course: CIS 443 - Programming Languages
|
||||
* Assignment: Lisp Interpreter Phase 1 - Lexical Analysis
|
||||
*/
|
||||
|
||||
package main;
|
||||
|
||||
import scanner.*;
|
||||
import error.ErrorManager;
|
||||
import java.io.*;
|
||||
|
||||
/**
|
||||
* <code>LispScannerDriver</code> is a program that takes the name of a file
|
||||
* as a command-line argument, retrieves all of the Lisp tokens from the file
|
||||
* and prints them to the console. If no file name is provided at the
|
||||
* command-line, this program will read from standard input.
|
||||
*/
|
||||
public class LispScannerDriver {
|
||||
|
||||
/**
|
||||
* Obtain the Lisp tokens from the file whose name was given as a
|
||||
* command-line argument and print them to the console. If no file name was
|
||||
* given, retrieve the tokens from standard input.
|
||||
*
|
||||
* @param args
|
||||
* the command-line arguments:
|
||||
* <ul>
|
||||
* <li><code>args[0]</code> - file name (optional)</li>
|
||||
* </ul>
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
LispScanner in = null;
|
||||
|
||||
if (args.length > 0) {
|
||||
// a file name was given at the command-line, attempt to create a
|
||||
// 'LispScanner' on it
|
||||
try {
|
||||
in = new LispScanner(new FileInputStream(args[0]), args[0]);
|
||||
} catch (FileNotFoundException e) {
|
||||
ErrorManager.generateError(e.getMessage(),
|
||||
ErrorManager.CRITICAL_LEVEL);
|
||||
}
|
||||
} else {
|
||||
// no file name was given, create a 'LispScanner' on standard input
|
||||
in = new LispScanner(System.in, "System.in");
|
||||
}
|
||||
|
||||
Token t = null;
|
||||
|
||||
do {
|
||||
try {
|
||||
t = in.nextToken();
|
||||
|
||||
System.out.printf("%-15s%-25s%5d%5d%25s\n", t.getType(),
|
||||
t.getText(),
|
||||
t.getLine(),
|
||||
t.getColumn(),
|
||||
t.getFName());
|
||||
} catch (RuntimeException e) {
|
||||
ErrorManager.generateError(e.getMessage(), 2);
|
||||
} catch (IOException e) {
|
||||
ErrorManager.generateError(e.getMessage(),
|
||||
ErrorManager.CRITICAL_LEVEL);
|
||||
}
|
||||
} while ((t == null) || (t.getType() != Token.Type.EOF));
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue