Skip to content

Commit c80178a

Browse files
committed
init commit with own additions
0 parents  commit c80178a

File tree

433 files changed

+38111
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

433 files changed

+38111
-0
lines changed

.classpath

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
4+
<classpathentry exported="true" kind="lib" path="lib/j--.jar"/>
5+
<classpathentry exported="true" kind="lib" path="lib/spim.jar"/>
6+
<classpathentry exported="true" kind="lib" path="lib/javacc.jar"/>
7+
<classpathentry exported="true" kind="lib" path="lib/junit.jar"/>
8+
<classpathentry exported="true" kind="lib" path="lib/j2h.jar"/>
9+
</classpath>

.externalToolBuilders/Ant.launch

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
3+
<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
4+
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
5+
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
6+
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
7+
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,auto,clean"/>
8+
<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
9+
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
10+
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
11+
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
12+
<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_CLEAN_TARGETS" value="clean,"/>
13+
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
14+
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
15+
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.ant.ui.classpathentry.antHome&quot;&gt;&#13;&#10;&lt;memento default=&quot;true&quot;/&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>
16+
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.ant.ui.classpathentry.extraClasspathEntries&quot;&gt;&#13;&#10;&lt;memento/&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>
17+
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/j--/lib/junit.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
18+
</listAttribute>
19+
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${workspace}"/>
20+
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/j--/build.xml}"/>
21+
</launchConfiguration>

.idea/kotlinc.xml

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/libraries/lib.xml

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/uiDesigner.xml

+124
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.project

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>j--</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
10+
<arguments>
11+
<dictionary>
12+
<key>LaunchConfigHandle</key>
13+
<value>&lt;project&gt;/.externalToolBuilders/Ant.launch</value>
14+
</dictionary>
15+
</arguments>
16+
</buildCommand>
17+
</buildSpec>
18+
<natures>
19+
<nature>org.eclipse.jdt.core.javanature</nature>
20+
</natures>
21+
</projectDescription>

bin/ant

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Usage: j-- <options> <source file>
2+
where possible options include:
3+
-t Only tokenize input and print tokens to STDOUT
4+
-p Only parse input and print AST to STDOUT
5+
-pa Only parse and pre-analyze input and print AST to STDOUT
6+
-a Only parse, pre-analyze, and analyze input and print AST to STDOUT
7+
-s <naive|linear|graph> Generate SPIM code
8+
-r <num> Max. physical registers (1-18) available for allocation; default = 8
9+
-d <dir> Specify where to place output files; default = .

bin/clemitter

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/sh
2+
3+
# Copyright 2013 Bill Campbell, Swami Iyer and Bahar Akbal-Delibas
4+
5+
# This is a convenience script for compiling a Java source
6+
# file A that uses the CLEmitter interface to programmatically
7+
# generate a Java class file B, and running the class A
8+
# to produce class B.
9+
10+
BASE_DIR=`dirname $0`
11+
j=${BASE_DIR}/../
12+
export j
13+
JAVA=java
14+
JAVAC=javac
15+
CPATH=".:${BASE_DIR}/../lib/j--.jar"
16+
if [ "$CLASSPATH" != "" ] ; then
17+
CPATH=${CPATH}:"${CLASSPATH}"
18+
fi
19+
if [ "$1" != "" ] ; then
20+
$JAVAC -classpath $CPATH -d . $1
21+
$JAVA -classpath $CPATH `basename $1 .java`
22+
else
23+
echo "Usage: clemitter <file>"
24+
fi
25+
26+
27+

bin/clemitter.bat

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
@echo off
2+
3+
REM Copyright 2013 Bill Campbell, Swami Iyer and Bahar Akbal-Delibas
4+
5+
REM This is a convenience script for compiling a Java source
6+
REM file A that uses the CLEmitter interface to programmatically
7+
REM generate a Java class file B, and running the class A
8+
REM to produce class B.
9+
10+
set BASE_DIR=%~dp0
11+
set j="%BASE_DIR%\..\"
12+
set JAVA=java
13+
set JAVAC=javac
14+
set CPATH=".;%BASE_DIR%\..\lib\j--.jar"
15+
if "%CLASSPATH%" == "" goto runApp
16+
set CPATH=%CPATH%;"%CLASSPATH%"
17+
if "%1" == "" goto usage
18+
19+
:runApp
20+
REM Run CLEmitter.
21+
%JAVAC% -classpath %CPATH% -d . %1
22+
%JAVA% -classpath %CPATH% %~n1
23+
goto cleanup
24+
25+
:usage
26+
echo Usage: clemitter ^<file^>
27+
28+
:cleanup
29+
REM Cleanup
30+
set JAVA=
31+
set JAVAC=
32+
set BASE_DIR=
33+
set CPATH=

bin/j--

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
3+
# Copyright 2013 Bill Campbell, Swami Iyer and Bahar Akbal-Delibas
4+
5+
# Wrapper script for running jminusminus.Main program.
6+
7+
BASE_DIR=`dirname $0`
8+
j=${BASE_DIR}/../
9+
export j
10+
JAVA=java
11+
CPATH="${BASE_DIR}/../lib/j--.jar:${BASE_DIR}/../lib/spim.jar"
12+
if [ "$CLASSPATH" != "" ] ; then
13+
CPATH=${CPATH}:"${CLASSPATH}"
14+
fi
15+
$JAVA -classpath $CPATH jminusminus.Main "j--" $*
16+
17+

bin/j--.bat

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@echo off
2+
3+
REM Copyright 2013 Bill Campbell, Swami Iyer and Bahar Akbal-Delibas
4+
5+
REM Wrapper script for running jminusminus.Main program.
6+
7+
set BASE_DIR=%~dp0
8+
set j="%BASE_DIR%\..\"
9+
set JAVA=java
10+
set CPATH="%BASE_DIR%\..\lib\j--.jar;%BASE_DIR%\..\lib\spim.jar"
11+
if "%CLASSPATH%" == "" goto runApp
12+
set CPATH=%CPATH%;"%CLASSPATH%"
13+
14+
:runApp
15+
%JAVA% -classpath %CPATH% jminusminus.Main "j--" %*
16+
17+
set JAVA=
18+
set BASE_DIR=
19+
set CPATH=

bin/javaccj--

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
3+
# Copyright 2013 Bill Campbell, Swami Iyer and Bahar Akbal-Delibas
4+
5+
# Wrapper script for running jminusminus.JavaCCMain program.
6+
7+
BASE_DIR=`dirname $0`
8+
j=${BASE_DIR}/../
9+
export j
10+
JAVA=java
11+
CPATH="${BASE_DIR}/../lib/j--.jar:${BASE_DIR}/../lib/spim.jar"
12+
if [ "$CLASSPATH" != "" ] ; then
13+
CPATH=${CPATH}:"${CLASSPATH}"
14+
fi
15+
$JAVA -classpath $CPATH jminusminus.JavaCCMain "javaccj--" $*
16+
17+

bin/javaccj--.bat

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@echo off
2+
3+
REM Copyright 2013 Bill Campbell, Swami Iyer and Bahar Akbal-Delibas
4+
5+
REM Wrapper script for running jminusminus.JavaCCMain program.
6+
7+
set BASE_DIR=%~dp0
8+
set j="%BASE_DIR%\..\"
9+
set JAVA=java
10+
set CPATH="%BASE_DIR%\..\lib\j--.jar;%BASE_DIR%\..\lib\spim.jar"
11+
if "%CLASSPATH%" == "" goto runApp
12+
set CPATH=%CPATH%;"%CLASSPATH%"
13+
14+
:runApp
15+
%JAVA% -classpath %CPATH% jminusminus.JavaCCMain "javaccj--" %*
16+
17+
set JAVA=
18+
set BASE_DIR=
19+
set CPATH=

0 commit comments

Comments
 (0)