mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
changed names of resource-1.3; added a note on homepage on release
This commit is contained in:
23
old-examples/tutorial/embedded/MathI.gf
Normal file
23
old-examples/tutorial/embedded/MathI.gf
Normal file
@@ -0,0 +1,23 @@
|
||||
incomplete concrete MathI of Math =
|
||||
open Syntax, Symbol, LexMath in {
|
||||
|
||||
flags startcat = Question ; lexer = textlit ; unlexer = text ;
|
||||
|
||||
lincat
|
||||
Answer = Text ;
|
||||
Question = Text ;
|
||||
Object = NP ;
|
||||
|
||||
lin
|
||||
Even = questAdj even_A ;
|
||||
Odd = questAdj odd_A ;
|
||||
Prime = questAdj prime_A ;
|
||||
Number n = mkNP (IntPN n) ;
|
||||
|
||||
Yes = mkText yes_Phr ;
|
||||
No = mkText no_Phr ;
|
||||
|
||||
oper
|
||||
questAdj : A -> NP -> Text = \adj,x -> mkText (mkQS (mkCl x adj)) ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user