Added Eclipse contents
BIN
eclipse/beta/artifacts.jar
Normal file
BIN
eclipse/beta/content.jar
Normal file
16
eclipse/examples/functors/Foods.gf
Normal file
@@ -0,0 +1,16 @@
|
||||
-- Abstract Syntax
|
||||
abstract Foods = {
|
||||
|
||||
flags startcat = Phrase ;
|
||||
|
||||
cat
|
||||
Phrase ; Item ; Kind ; Quality ;
|
||||
|
||||
fun
|
||||
Is : Item -> Quality -> Phrase ;
|
||||
This, That, These, Those : Kind -> Item ;
|
||||
QKind : Quality -> Kind -> Kind ;
|
||||
Wine, Cheese, Fish, Pizza : Kind ;
|
||||
Very : Quality -> Quality ;
|
||||
Fresh, Warm, Italian, Expensive, Delicious, Boring : Quality ;
|
||||
}
|
||||
8
eclipse/examples/functors/FoodsEng.gf
Normal file
@@ -0,0 +1,8 @@
|
||||
-- Functor Instantiation
|
||||
--# -path=.:/home/john/.cabal/share/gf-3.2.9/lib/present
|
||||
concrete FoodsEng of Foods = FoodsI - [Pizza] with
|
||||
(Syntax = SyntaxEng),
|
||||
(LexFoods = LexFoodsEng) **
|
||||
open SyntaxEng, ParadigmsEng in {
|
||||
lin Pizza = mkCN (mkA "Italian") (mkN "pie") ;
|
||||
}
|
||||
5
eclipse/examples/functors/FoodsGer.gf
Normal file
@@ -0,0 +1,5 @@
|
||||
-- Functor Instantiation
|
||||
--# -path=.:/home/john/.cabal/share/gf-3.2.9/lib/present
|
||||
concrete FoodsGer of Foods = FoodsI with
|
||||
(Syntax = SyntaxGer),
|
||||
(LexFoods = LexFoodsGer) ;
|
||||
28
eclipse/examples/functors/FoodsI.gf
Normal file
@@ -0,0 +1,28 @@
|
||||
-- Functor
|
||||
-- (a module that opens one or more interfaces)
|
||||
incomplete concrete FoodsI of Foods = open Syntax, LexFoods in {
|
||||
lincat
|
||||
Phrase = Cl ;
|
||||
Item = NP ;
|
||||
Kind = CN ;
|
||||
Quality = AP ;
|
||||
lin
|
||||
Is item quality = mkCl item quality ;
|
||||
This kind = mkNP this_Det kind ;
|
||||
That kind = mkNP that_Det kind ;
|
||||
These kind = mkNP these_Det kind ;
|
||||
Those kind = mkNP those_Det kind ;
|
||||
QKind quality kind = mkCN quality kind ;
|
||||
Very quality = mkAP very_AdA quality ;
|
||||
|
||||
Wine = mkCN wine_N ;
|
||||
Pizza = mkCN pizza_N ;
|
||||
Cheese = mkCN cheese_N ;
|
||||
Fish = mkCN fish_N ;
|
||||
Fresh = mkAP fresh_A ;
|
||||
Warm = mkAP warm_A ;
|
||||
Italian = mkAP italian_A ;
|
||||
Expensive = mkAP expensive_A ;
|
||||
Delicious = mkAP delicious_A ;
|
||||
Boring = mkAP boring_A ;
|
||||
}
|
||||
15
eclipse/examples/functors/LexFoods.gf
Normal file
@@ -0,0 +1,15 @@
|
||||
-- Lexicon Interface
|
||||
-- (a resource which contains only oper TYPES)
|
||||
interface LexFoods = open Syntax in {
|
||||
oper
|
||||
wine_N : N ;
|
||||
pizza_N : N ;
|
||||
cheese_N : N ;
|
||||
fish_N : N ;
|
||||
fresh_A : A ;
|
||||
warm_A : A ;
|
||||
italian_A : A ;
|
||||
expensive_A : A ;
|
||||
delicious_A : A ;
|
||||
boring_A : A ;
|
||||
}
|
||||
16
eclipse/examples/functors/LexFoodsEng.gf
Normal file
@@ -0,0 +1,16 @@
|
||||
-- Lexicon Instance
|
||||
instance LexFoodsEng of LexFoods = open SyntaxEng, ParadigmsEng in {
|
||||
flags
|
||||
coding=utf8 ;
|
||||
oper
|
||||
wine_N = mkN "wine" ;
|
||||
pizza_N = mkN "pizza" ;
|
||||
cheese_N = mkN "cheese" ;
|
||||
fish_N = mkN "fish" ;
|
||||
fresh_A = mkA "fresh" ;
|
||||
warm_A = mkA "warm" ;
|
||||
italian_A = mkA "Italian" ;
|
||||
expensive_A = mkA "expensive" ;
|
||||
delicious_A = mkA "delicious" ;
|
||||
boring_A = mkA "boring" ;
|
||||
}
|
||||
18
eclipse/examples/functors/LexFoodsGer.gf
Normal file
@@ -0,0 +1,18 @@
|
||||
-- Lexicon Instance
|
||||
instance LexFoodsGer of LexFoods = open SyntaxGer, ParadigmsGer in {
|
||||
flags
|
||||
coding=utf8 ;
|
||||
oper
|
||||
wine_N = mkN "Wein" ;
|
||||
pizza_N = mkN "Pizza" "Pizzen" feminine ;
|
||||
cheese_N = mkN "Käse" "Käsen" masculine ;
|
||||
fish_N = mkN "Fisch" ;
|
||||
fresh_A = mkA "frisch" ;
|
||||
warm_A = mkA "warm" "wärmer" "wärmste" ;
|
||||
italian_A = mkA "italienisch" ;
|
||||
expensive_A = mkA "teuer" ;
|
||||
delicious_A = mkA "köstlich" ;
|
||||
boring_A = mkA "langweilig" ;
|
||||
|
||||
testy_A = mkA "testy" ;
|
||||
}
|
||||
5
eclipse/examples/hello/AbsCat.gf
Normal file
@@ -0,0 +1,5 @@
|
||||
abstract AbsCat = {
|
||||
|
||||
cat Greeting ; Recipient ;
|
||||
|
||||
};
|
||||
12
eclipse/examples/hello/HelloAbs.gf
Normal file
@@ -0,0 +1,12 @@
|
||||
abstract HelloAbs = AbsCat [Greeting, Recipient] ** {
|
||||
|
||||
flags startcat = Greeting ;
|
||||
|
||||
cat Farewell ;
|
||||
|
||||
fun
|
||||
Hello : Recipient -> Greeting ;
|
||||
Goodbye : Recipient -> Farewell ;
|
||||
World, Parent, Friends : Recipient ;
|
||||
|
||||
}
|
||||
21
eclipse/examples/hello/HelloEng.gf
Normal file
@@ -0,0 +1,21 @@
|
||||
concrete HelloEng of HelloAbs = ResEng ** {
|
||||
|
||||
lincat
|
||||
Greeting, Farewell = {s : Str} ;
|
||||
Recipient = {s : Gender => Str} ;
|
||||
|
||||
lin
|
||||
Hello recip = {s = "hello" ++ recip.s ! Masc} ;
|
||||
Goodbye recip = {s = "goodbye" ++ recip.s ! Fem} ;
|
||||
|
||||
World = {s = \\_ => "world"} ;
|
||||
Parent = { s = table {
|
||||
Masc => "dad" ; Fem => "mum"
|
||||
} } ;
|
||||
Friends = superate "friends" ;
|
||||
|
||||
oper
|
||||
superate : Str -> Recipient = \s ->
|
||||
lin Recipient { s = \\_ => "super" ++ s } ;
|
||||
|
||||
}
|
||||
8
eclipse/examples/hello/ResEng.gf
Normal file
@@ -0,0 +1,8 @@
|
||||
--# -path=.:../abstract:../common:../../prelude
|
||||
resource ResEng = {
|
||||
|
||||
param
|
||||
OtherParam = A | B ;
|
||||
Gender = Masc | Fem ;
|
||||
|
||||
} ;
|
||||
BIN
eclipse/images/eclipse-after-format.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
eclipse/images/eclipse-before-format.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
eclipse/images/eclipse-compileroutput.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
eclipse/images/eclipse-editor-cat.png
Normal file
|
After Width: | Height: | Size: 143 KiB |
BIN
eclipse/images/eclipse-editor-general.png
Normal file
|
After Width: | Height: | Size: 135 KiB |
BIN
eclipse/images/eclipse-launchconfig.png
Normal file
|
After Width: | Height: | Size: 78 KiB |
BIN
eclipse/images/eclipse-modulewizard-1.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
eclipse/images/eclipse-projectwizard-1.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
eclipse/images/eclipse-projectwizard-2.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
14
eclipse/index.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>GF Eclipse Plugin</TITLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<CENTER>
|
||||
<H1>GF Eclipse Plugin</H1>
|
||||
<P>
|
||||
This information has now moved to the <A href="http://www.molto-project.eu/node/1395" title="GF Eclipse Plugin at the MOLTO Project website Wiki">MOLTO Project Wiki</A>.
|
||||
</P>
|
||||
</CENTER>
|
||||
</BODY>
|
||||
</HTML>
|
||||