Homework 1
This commit is contained in:
parent
49bca7f856
commit
12f678a924
43 changed files with 3703 additions and 0 deletions
6
src/cd/frontend/parser/.gitignore
vendored
Normal file
6
src/cd/frontend/parser/.gitignore
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
/Javali.tokens
|
||||
/JavaliBaseVisitor.java
|
||||
/JavaliLexer.java
|
||||
/JavaliLexer.tokens
|
||||
/JavaliParser.java
|
||||
/JavaliVisitor.java
|
9
src/cd/frontend/parser/ParseFailure.java
Normal file
9
src/cd/frontend/parser/ParseFailure.java
Normal file
|
@ -0,0 +1,9 @@
|
|||
package cd.frontend.parser;
|
||||
|
||||
public class ParseFailure extends RuntimeException {
|
||||
private static final long serialVersionUID = -949992757679367939L;
|
||||
public ParseFailure(int line, String string) {
|
||||
super(String.format("Parse failure on line %d: %s",
|
||||
line, string));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue