update ads to ntriples
This commit is contained in:
4
ASD.txt
4
ASD.txt
@@ -17,8 +17,8 @@ complement ::= Complement(String)
|
|||||||
|
|
||||||
|
|
||||||
turtle ::= Turtle(phrase*)
|
turtle ::= Turtle(phrase*)
|
||||||
phrase ::= Phrase(entity, aff*)
|
phrase ::= Phrase(String, aff*)
|
||||||
aff ::= Aff(entity, complement*)
|
aff ::= Aff(String, complement*)
|
||||||
complement ::= Complement(Entity)
|
complement ::= Complement(Entity)
|
||||||
| Complement_Text(String)
|
| Complement_Text(String)
|
||||||
entity ::= Entity(String)
|
entity ::= Entity(String)
|
||||||
|
|||||||
13
README.md
13
README.md
@@ -37,7 +37,18 @@ complement ent String H
|
|||||||
entity val String S
|
entity val String S
|
||||||
|
|
||||||
|
|
||||||
|
|TAD |Nom d'attribut |Type | Polarité
|
||||||
|
|----------------|-----------------|---------------------|---------|
|
||||||
|
|turtle |val |list(Phrase) |S
|
||||||
|
|phrase |sujet_p |String |H
|
||||||
|
|phrase |affs |list(Aff) |S
|
||||||
|
|aff |sujet_a |String |H
|
||||||
|
|aff |vebre_a |String |H
|
||||||
|
|aff |comps |list(comp) |S
|
||||||
|
|complement |sujet_c |String |H
|
||||||
|
|complement |verbe_c |String |H
|
||||||
|
|complement |comp_c |String |H/S
|
||||||
|
|Entity |val |String |S
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -9,9 +9,43 @@ options {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@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.
|
// Whitespaces are ignored.
|
||||||
fragment WS: (' ' | '\n' | '\t' | '\r' | '\u000C');
|
fragment WS: (' ' | '\n' | '\t' | '\r' | '\u000C');
|
||||||
|
|||||||
@@ -15,38 +15,6 @@ import TP1.ASD_Turtle.*;
|
|||||||
public class Main {
|
public class Main {
|
||||||
/**
|
/**
|
||||||
* Buils example AST and illustrates the translator.
|
* 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() {
|
public static void manualAST() {
|
||||||
//Ridoux <type> <personne>, <professeur>;
|
//Ridoux <type> <personne>, <professeur>;
|
||||||
|
|||||||
Reference in New Issue
Block a user