Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SpaceCookies
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Charlie Graham Carr
SpaceCookies
Commits
0f2f349c
Commit
0f2f349c
authored
Nov 06, 2017
by
Charlie Graham Carr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
created test file, added prints
parent
75308cb7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
29 deletions
+29
-29
Start.class
Start.class
+0
-0
Start.java
Start.java
+24
-29
spacecookie.jpg
spacecookie.jpg
+0
-0
test.java
test.java
+5
-0
No files found.
Start.class
0 → 100644
View file @
0f2f349c
File added
Start.java
View file @
0f2f349c
/**
* Starting point for a new language interpreter.
* Run your program with
* java Start program
* where program is the file containing the program source code.
*/
import
java.lang.Exception
;
import
java.io.*
;
public
class
Start
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
/* Exit with an error if the user hasn't specified a program to run */
if
(
args
.
length
<
1
)
{
System
.
err
.
println
(
"Syntax: java Start <program>"
);
System
.
err
.
println
(
"SpaceCookies are not yet baked"
);
System
.
exit
(
1
);
}
try
{
/* Open the program file and read the lines one-by-one */
System
.
out
.
println
(
"Welcome, to SpaceCookies"
);
System
.
out
.
println
(
"This is the newest language to be developed by someone who has no idea what they're doing..."
);
BufferedReader
br
=
new
BufferedReader
(
new
FileReader
(
args
[
0
]));
while
(
true
)
{
String
line
=
br
.
readLine
();
...
...
@@ -31,14 +27,13 @@ public class Start
}
catch
(
Exception
e
)
{
System
.
err
.
println
(
"Exception: "
+
e
);
}
}
}
/** Process a single line of the input program.
/** Process a single line of the input program.
* @param line Line to process.
*/
private
static
void
process
(
String
line
)
{
private
static
void
process
(
String
line
)
{
System
.
out
.
println
(
"Line: "
+
line
);
}
}
ls
}
}
spacecookie.jpg
0 → 100644
View file @
0f2f349c
190 KB
test.java
0 → 100644
View file @
0f2f349c
public
class
test
{
public
static
void
main
(
String
[]
args
)
{
println
(
"Welcome to SpaceCookies, hooman"
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment