mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-24 18:28:55 -06:00
Math to mathematical/Symbol
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
--# -path=.:resource-1.0/abstract:resource-1.0/common:resource-1.0/multimodal:resource-1.0/english:prelude
|
--# -path=.:resource-1.0/abstract:resource-1.0/common:resource-1.0/multimodal:resource-1.0/english:prelude:resource-1.0/mathematical
|
||||||
|
|
||||||
concrete TramEng of Tram = TramI with
|
concrete TramEng of Tram = TramI with
|
||||||
(Multimodal = MultimodalEng),
|
(Multimodal = MultimodalEng),
|
||||||
(Math = MathEng) ;
|
(Symbol = SymbolEng) ;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
--# -path=.:resource-1.0/abstract:resource-1.0/french:resource-1.0/common:resource-1.0/multimodal:resource-1.0/romance:prelude
|
--# -path=.:resource-1.0/abstract:resource-1.0/french:resource-1.0/common:resource-1.0/multimodal:resource-1.0/romance:prelude:resource-1.0/mathematical
|
||||||
|
|
||||||
concrete TramFre of Tram = TramI with
|
concrete TramFre of Tram = TramI with
|
||||||
(Multimodal = MultimodalFre),
|
(Multimodal = MultimodalFre),
|
||||||
(Math = MathFre) ;
|
(Symbol = SymbolFre) ;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
--# -path=.:resource-1.0/abstract:resource-1.0/common:resource-1.0/multimodal:resource-1.0/german:prelude
|
--# -path=.:resource-1.0/abstract:resource-1.0/common:resource-1.0/mathematical:resource-1.0/multimodal:resource-1.0/german:prelude
|
||||||
|
|
||||||
concrete TramGer of Tram = TramI with
|
concrete TramGer of Tram = TramI with
|
||||||
(Multimodal = MultimodalGer),
|
(Multimodal = MultimodalGer),
|
||||||
(Math = MathGer) ;
|
(Symbol = SymbolGer) ;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
incomplete concrete TramI of Tram = open Multimodal, Math in {
|
incomplete concrete TramI of Tram = open Multimodal, Symbol in {
|
||||||
|
|
||||||
flags startcat=Query ; lexer=textlit ;
|
flags startcat=Query ; lexer=textlit ;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
--# -path=.:resource-1.0/abstract:resource-1.0/swedish:resource-1.0/common:resource-1.0/multimodal:resource-1.0/scandinavian:prelude
|
--# -path=.:resource-1.0/abstract:resource-1.0/swedish:resource-1.0/common:resource-1.0/multimodal:resource-1.0/scandinavian:prelude:resource-1.0/mathematical
|
||||||
|
|
||||||
concrete TramSwe of Tram = TramI with
|
concrete TramSwe of Tram = TramI with
|
||||||
(Multimodal = MultimodalSwe),
|
(Multimodal = MultimodalSwe),
|
||||||
(Math = MathSwe) ;
|
(Symbol = SymbolSwe) ;
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
concrete MathFre of Math = CatFre ** MathRomance with
|
|
||||||
(ResRomance = ResFre) ;
|
|
||||||
@@ -3,14 +3,15 @@
|
|||||||
-- *Note*. This module is not automatically included in the main
|
-- *Note*. This module is not automatically included in the main
|
||||||
-- grammar [Lang Lang.html].
|
-- grammar [Lang Lang.html].
|
||||||
|
|
||||||
abstract Math = Cat ** {
|
abstract Symbol = Cat ** {
|
||||||
|
|
||||||
--2 Noun phrases with symbols
|
--2 Noun phrases with symbols and numbers
|
||||||
|
|
||||||
fun
|
fun
|
||||||
|
|
||||||
SymbPN : Symb -> PN ; -- x
|
SymbPN : Symb -> PN ; -- x
|
||||||
IntPN : Int -> PN ; -- 27
|
IntPN : Int -> PN ; -- 27
|
||||||
|
FloatPN : Float -> PN ; -- 3.14159
|
||||||
CNIntNP : CN -> Int -> NP ; -- level 53
|
CNIntNP : CN -> Int -> NP ; -- level 53
|
||||||
CNSymbNP : Det -> CN -> [Symb] -> NP ; -- (the) (2) numbers x and y
|
CNSymbNP : Det -> CN -> [Symb] -> NP ; -- (the) (2) numbers x and y
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
concrete MathEng of Math = CatEng ** open Prelude, ResEng in {
|
concrete SymbolEng of Symbol = CatEng ** open Prelude, ResEng in {
|
||||||
|
|
||||||
lin
|
lin
|
||||||
SymbPN i = {s = \\c => i.s ; a = agrP3 Sg} ; --- c
|
SymbPN i = {s = \\c => i.s ; a = agrP3 Sg} ; --- c
|
||||||
2
lib/resource-1.0/mathematical/SymbolFre.gf
Normal file
2
lib/resource-1.0/mathematical/SymbolFre.gf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
concrete SymbolFre of Symbol = CatFre ** SymbolRomance with
|
||||||
|
(ResRomance = ResFre) ;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
concrete MathGer of Math = CatGer ** open Prelude, ResGer in {
|
concrete SymbolGer of Symbol = CatGer ** open Prelude, ResGer in {
|
||||||
|
|
||||||
lin
|
lin
|
||||||
SymbPN i = {s = \\c => i.s ; g = Neutr} ; --- c
|
SymbPN i = {s = \\c => i.s ; g = Neutr} ; --- c
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
incomplete concrete MathRomance of Math =
|
incomplete concrete SymbolRomance of Symbol =
|
||||||
CatRomance ** open Prelude, CommonRomance, ResRomance in {
|
CatRomance ** open Prelude, CommonRomance, ResRomance in {
|
||||||
|
|
||||||
lin
|
lin
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
incomplete concrete MathScand of Math =
|
incomplete concrete SymbolScand of Symbol =
|
||||||
CatScand ** open Prelude, ResScand, DiffScand in {
|
CatScand ** open Prelude, ResScand, CommonScand in {
|
||||||
|
|
||||||
lin
|
lin
|
||||||
SymbPN i = {s = \\c => i.s ; g = Neutr} ; --- c
|
SymbPN i = {s = \\c => i.s ; g = Neutr} ; --- c
|
||||||
2
lib/resource-1.0/mathematical/SymbolSwe.gf
Normal file
2
lib/resource-1.0/mathematical/SymbolSwe.gf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
concrete SymbolSwe of Symbol = CatSwe ** SymbolScand with
|
||||||
|
(ResScand = ResSwe) ;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
abstract Demonstrative = Cat, Tense ** {
|
abstract Demonstrative = Cat ** {
|
||||||
|
|
||||||
-- Naming convention: $M$ prepended to 'unimodal' names.
|
-- Naming convention: $M$ prepended to 'unimodal' names.
|
||||||
-- Exceptions: lexical units, those without unimodal counterparts.
|
-- Exceptions: lexical units, those without unimodal counterparts.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
--# -path=.:../english/:../abstract:../common:prelude
|
--# -path=.:../english/:../abstract:../common:prelude
|
||||||
|
|
||||||
concrete DemonstrativeEng of Demonstrative = CatEng, TenseX ** DemonstrativeI with
|
concrete DemonstrativeEng of Demonstrative = CatEng ** DemonstrativeI with
|
||||||
(Lang = LangEng) ;
|
(Lang = LangEng) ;
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
concrete DemonstrativeFre of Demonstrative = CatFre, TenseX ** DemonstrativeI with
|
concrete DemonstrativeFre of Demonstrative = CatFre ** DemonstrativeI with
|
||||||
(Lang = LangFre) ;
|
(Lang = LangFre) ;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
--# -path=.:../german/:../abstract:../common:prelude
|
--# -path=.:../german/:../abstract:../common:prelude
|
||||||
|
|
||||||
concrete DemonstrativeGer of Demonstrative = CatGer, TenseX ** DemonstrativeI with
|
concrete DemonstrativeGer of Demonstrative = CatGer ** DemonstrativeI with
|
||||||
(Lang = LangGer) ;
|
(Lang = LangGer) ;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
incomplete concrete DemonstrativeI of Demonstrative = Cat, TenseX **
|
incomplete concrete DemonstrativeI of Demonstrative = Cat **
|
||||||
open Prelude, Lang, ParamX, DemRes in {
|
open Prelude, Lang, ParamX, DemRes in {
|
||||||
|
|
||||||
lincat
|
lincat
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
concrete DemonstrativeSwe of Demonstrative = CatSwe, TenseX ** DemonstrativeI with
|
concrete DemonstrativeSwe of Demonstrative = CatSwe ** DemonstrativeI with
|
||||||
(Lang = LangSwe) ;
|
(Lang = LangSwe) ;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
concrete MathSwe of Math = CatSwe ** MathScand with
|
|
||||||
(ResScand = ResSwe) ;
|
|
||||||
Reference in New Issue
Block a user