I hereby claim:
- I am inariksit on github.
- I am inariksit (https://keybase.io/inariksit) on keybase.
- I have a public key ASB5HeWRM-D3MKsIJgbPRpu6CgFay_ZfIggQXVeSrv30Mwo
To claim this, I am signing this object:
-- all code by Aarne Ranta | |
abstract Logic = { | |
cat | |
Prop ; Ind ; | |
data | |
And, Or, If : Prop -> Prop -> Prop ; | |
Not : Prop -> Prop ; | |
All, Exist : (Ind -> Prop) -> Prop ; | |
Past : Prop -> Prop ; |
I hereby claim:
To claim this, I am signing this object:
# Rules that target A1 | |
REMOVE A1 IF (0 HAU) (-1 HONAKO) ; # line 4210 | |
# Rules that target A3 | |
REMOVE A3 IF (0C KAUS) ; # line 7559 | |
BEFORE-SECTIONS | |
MAPPING-PREFIX = @; | |
DELIMITERS = "<$.>"<PUNT_PUNT>" "<$?>"<PUNT_GALD>" "<$!>"<PUNT_ESKL>" <<s>> <</s>>; | |
#DELIMITERS = "<DELIM>" ; | |
# DELIMITERS = "<$.>" "<.>" "<$?>" "<$!>" <<s>> <</s>>; | |
#SETS |
{-# LANGUAGE PackageImports #-} | |
import "pgf2" PGF2 | |
import qualified Data.Map as Map | |
main = do | |
pgf <- readPGF "Data.pgf" | |
json <- getConcr' pgf (abstractName pgf ++ "Json") -- :: Concr | |
let res = parse json (startCat pgf) "[true]" | |
let expr = case res of |
abstract UnsupportedTokenGluing = { | |
flags startcat = S ; | |
cat | |
S ; A ; | |
fun | |
toS : A -> S ; | |
a,b : A ; | |
} |
abstract My = Numeral -- Extending Numeral grammar from RGL, see http://www.grammaticalframework.org/doc/tutorial/gf-tutorial.html#toc43 | |
** { | |
flags startcat = Clause ; | |
cat | |
Kind ; | |
Clause ; | |
-- The categories Int, Float and String are present in all grammars | |
-- The categories Dig and Digits come from Numeral, which this grammar extends. |
You can get this error if your abstract and concrete syntax are mismatched. Here's an example:
-- Abstract
fun NP_sleeps_S : NP -> S ;
-- Concrete
lin NP_sleeps_S np = mkS (mkCl np sleep_V) ;
abstract Test = { | |
cat | |
NP ; S ; | |
fun | |
ANP, BNP, CNP : NP ; | |
ConstNP : NP -> NP ; | |
NP2S : NP -> S ; | |
} |
** PhrUtt NoPConj (UttAP (ComparA young_A (DetCN (DetQuant DefArt NumPl) (UseN ∅)))) NoVoc LangHun-NEW> fiatalabb a lábaknál LangHun-OLD> fiatalabb a láboknál LangEng> younger than the legs
** PhrUtt NoPConj (UttVP (ComplSlash (SlashV2a write_V2) (DetCN (DetQuant DefArt NumPl) (UseN ∅)))) NoVoc LangHun-NEW> a lábakat írni