A compiler API for the SunScript language. Forked from https://github.com/JoshuaMKW/ssc
Find a file
2015-12-09 09:46:06 -05:00
ast Added: new import resolver system which allows for custom user import resolving. 2015-12-08 20:11:35 -05:00
.gitignore Added batch files for testing and generating grammar classes. 2015-12-07 10:04:03 -05:00
AssemblyInfo.cs Added code so far. 2015-12-06 23:15:02 -05:00
compiler.cs Added: new import resolver system which allows for custom user import resolving. 2015-12-08 20:11:35 -05:00
context.cs Added: new import resolver system which allows for custom user import resolving. 2015-12-08 20:11:35 -05:00
data table.cs Added code so far. 2015-12-06 23:15:02 -05:00
exceptions.cs Added: new import resolver system which allows for custom user import resolving. 2015-12-08 20:11:35 -05:00
generate.bat Added batch files for testing and generating grammar classes. 2015-12-07 10:04:03 -05:00
grammatica-1.6.dll Added Grammatica DLL and JAR files. 2015-12-06 23:15:42 -05:00
grammatica.jar Added Grammatica DLL and JAR files. 2015-12-06 23:15:42 -05:00
import resolver.cs Added: new import resolver system which allows for custom user import resolving. 2015-12-08 20:11:35 -05:00
language.md Moved language information to its own file. 2015-12-09 09:46:06 -05:00
loop stack.cs Added code so far. 2015-12-06 23:15:02 -05:00
parse.bat Added batch files for testing and generating grammar classes. 2015-12-07 10:04:03 -05:00
parser.cs Added: new import resolver system which allows for custom user import resolving. 2015-12-08 20:11:35 -05:00
readme.md Moved language information to its own file. 2015-12-09 09:46:06 -05:00
scope stack.cs Added code so far. 2015-12-06 23:15:02 -05:00
sunscript.grammar Fixed: grammar still allowed for some statements to be in a nested scope. 2015-12-07 11:19:29 -05:00
symbol table.cs Added code so far. 2015-12-06 23:15:02 -05:00
tokenize.bat Added batch files for testing and generating grammar classes. 2015-12-07 10:04:03 -05:00
writer.cs Added code so far. 2015-12-06 23:15:02 -05:00

ssc

Summary

ssc is a basic, work-in-progress compiler for SunScript. It supports all of the byte-code functionality and provides some basic compile-time functionality as well. The compiler compiles to the SPC binary format (.sb files) used by Super Mario Sunshine.

This program utilizes the Grammatica library to generate a LL parser using a grammar syntax file.

Usage

To use ssc, fire it up via the command prompt and pass it the single SunScript file to be compiled as the argument. If a compiler or syntax error occurs, details will be printed in the output; otherwise, a compiled .sb file with the same name will be created in the same folder as the input.

Language

For more information on the SunScript language and its syntax, see language.md.