tp1 énoncé traducteur RDF/Turtle vers RDF/Ntriples

This commit is contained in:
Delphine Demange
2025-01-17 07:28:54 +01:00
commit ea75c0e0ba
16 changed files with 887 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
parser grammar TurtleParser;
options {
language = Java;
tokenVocab = TurtleLexer;
k = 1;
}
@header {
package TP1;
}
// On syntax error, raise exception rather than silently recovery
@rulecatch {
catch (RecognitionException e) {
reportError(e) ;
throw(e) ;
}
}
@members {
}
turtle
returns[TurtleAST t]: EOF { $t = null ; };