Make an AST from the file with the given name, returning it wrapped in Left.
Make an AST from the file with the given name, returning it wrapped in Left. Returns Right with an error message if an AST cannot be made.
Function to process the input that was parsed.
Function to process the input that was parsed. console should be used to read anything needed by the processing. emitter should be used for output. Return true if everything worked, false otherwise. If false is returned, messages about the problem should be logged by process using the messaging facility.
Process the command-line arguments.
Process the command-line arguments. Returns the arguments that have not been processed. Default: do no processing.
Run the driver using the given args and return the resulting output, which may be error messages or the result of running the compiled program, for example.
Run the driver using the given args and return the resulting output, which may be error messages or the result of running the compiled program, for example. Read standard input from the specified console. Reset the message buffer before calling the driver.
Flag to decide whether to sanitise the output before comparison of test results with expected results (see sanitise method).
Flag to decide whether to sanitise the output before comparison of test results with expected results (see sanitise method). Default is true; override with false if you want actual results compared.
Process the arguments, using the given console for input and the given emitter for output.
Process the arguments, using the given console for input and the given emitter for output. The arguments are first processed by checkargs. Any remaining arguments are interpreted as file names which are processed in turn by using makeast to turn their contents into abstract syntax trees (ASTs) and then by process which conducts arbitrary processing on the ASTs.
Make a single file test processing the file cp with comamnd-line arguments args, expecting output as in the file rp.
Make a single file test processing the file cp with comamnd-line arguments args, expecting output as in the file rp. Use the given console for input. The extra string is used is appended to the normal test title. name is an identifying string used in messages. If the compilation fails, rp is assumed to contain the expected messages.
Make tests that process the files in path.
Make tests that process the files in path. name is an identifying name for this set of tests. All files whose names end in srcext are processed. Processing is done by the function compile which must return either Some (s) where s is the output or None if processing failed. If srcext is .x and resext is .y, then the expected result for foo.x is found in file foo.y. If optinext is Some (z), then foo.z is used for standard input, if it exists, otherwise the string indefault is used. A test fails if either the processing fails or it succeeds with the wrong result. argslist is used to specify the sets of command-line arguments that you want to use. Each test is run with each set of arguments. The default is an empty argument list.
Process the program in the file given as the first command-line argument, read input using JLine input editing, and emit output to the standard output.
Sanitise the output.
Sanitise the output. At the moment this means make any Windows line endings appear in Unix style instead. This allows for either program or test output to use either line ending style, but tests will still pass. This will clearly break any tests where the actual line endings matter.
scala.this.deprecated.init$default$1
Trait to provide basic functionality for a compiler-like program constructed from phases.