-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1598649
commit f0b9200
Showing
45 changed files
with
192 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,4 +157,3 @@ include val | |
include list | ||
include class | ||
include ref | ||
% |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bats | ||
|
||
@test "PLCC compiles the OBJ language." { | ||
# Copy the OBJ language to the temp directory for this test | ||
cp -R "${BATS_TEST_DIRNAME}/OBJ" "${BATS_TMPDIR}" | ||
|
||
# Change into the temporary OBJ directory. | ||
cd "${BATS_TMPDIR}/OBJ" | ||
|
||
# Use plcc to generate the Java files from the OBJ grammar file. | ||
plcc "grammar" | ||
|
||
# Change into the generated Java file. | ||
cd Java | ||
|
||
# Compile the Java files. | ||
run javac *.java | ||
|
||
# Print stdout and stderr for debugging. | ||
echo "OUTPUT: $output" | ||
echo "ERROR: $error" | ||
|
||
# Assert success. | ||
[ "$status" -eq 0 ] | ||
} |