Initial commit
This commit is contained in:
24
src/main/antlr/VSLParser.g
Normal file
24
src/main/antlr/VSLParser.g
Normal file
@@ -0,0 +1,24 @@
|
||||
parser grammar VSLParser;
|
||||
|
||||
options {
|
||||
language = Java;
|
||||
tokenVocab = VSLLexer;
|
||||
k = 1;
|
||||
}
|
||||
|
||||
@header {
|
||||
package TP2;
|
||||
|
||||
import TP2.asd.*;
|
||||
}
|
||||
|
||||
// On syntax error, raise exception rather than silently recovery
|
||||
@rulecatch {
|
||||
catch (RecognitionException ex) {
|
||||
reportError(ex) ;
|
||||
throw(ex) ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
program returns [Program p] : /* TODO */;
|
||||
Reference in New Issue
Block a user