update ads to ntriples
This commit is contained in:
@@ -8,10 +8,44 @@ options {
|
||||
package TP1;
|
||||
}
|
||||
|
||||
@members {
|
||||
|
||||
@members {
|
||||
}
|
||||
|
||||
LC : '<'
|
||||
;
|
||||
RC : '>'
|
||||
;
|
||||
P: '.'
|
||||
;
|
||||
V: ','
|
||||
;
|
||||
SEMI: ';'
|
||||
;
|
||||
G: '"'
|
||||
;
|
||||
prog : bloc EOF
|
||||
;
|
||||
bloc : sujet listvc P
|
||||
;
|
||||
sujet : LC entity RC
|
||||
;
|
||||
listvc : LC vc RC more
|
||||
;
|
||||
more : SEMI listvc
|
||||
|
|
||||
;
|
||||
vc : LC verbe RC listc
|
||||
;
|
||||
listc : LC comp RC morec
|
||||
;
|
||||
morec : V comp
|
||||
|
|
||||
;
|
||||
entity : ID
|
||||
;
|
||||
verbe : ID
|
||||
;
|
||||
comp : ID
|
||||
;
|
||||
|
||||
// Whitespaces are ignored.
|
||||
fragment WS: (' ' | '\n' | '\t' | '\r' | '\u000C');
|
||||
|
||||
@@ -15,38 +15,6 @@ import TP1.ASD_Turtle.*;
|
||||
public class Main {
|
||||
/**
|
||||
* Buils example AST and illustrates the translator.
|
||||
*
|
||||
|
||||
LC : '<'
|
||||
;
|
||||
RC : '>'
|
||||
;
|
||||
P: '.'
|
||||
;
|
||||
V: ','
|
||||
;
|
||||
SEMI: ';'
|
||||
;
|
||||
G: '"'
|
||||
;
|
||||
prog : bloc EOF
|
||||
;
|
||||
bloc : sujet listvc P
|
||||
;
|
||||
sujet : LC entity RC
|
||||
;
|
||||
listvc : LC vc RC more
|
||||
;
|
||||
more : SEMI listvc
|
||||
|
|
||||
;
|
||||
vc : LC verbe RC listc
|
||||
;
|
||||
listc : LC comp RC morec
|
||||
;
|
||||
morec : V comp
|
||||
|
|
||||
;
|
||||
*/
|
||||
public static void manualAST() {
|
||||
//Ridoux <type> <personne>, <professeur>;
|
||||
|
||||
Reference in New Issue
Block a user