mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-14 15:29:31 -06:00
20 lines
520 B
Plaintext
20 lines
520 B
Plaintext
resource prologResource = {
|
|
|
|
oper
|
|
app : Str -> Str -> Str =
|
|
\pred -> \arg ->
|
|
pred ++ "(" ++ arg ++ ")" ;
|
|
appHakeOne : Str -> Str =
|
|
\arg ->
|
|
"["++ arg ++ "]" ;
|
|
oper
|
|
--with single quotes
|
|
--app2 : Str -> Str -> Str -> Str = \pred -> \argH -> \argM -> pred ++ "(" ++ "'" ++ argH ++ ":" ++ argM ++ "'" ++ ")" ;
|
|
--without single quotes
|
|
--app2 : Str -> Str -> Str -> Str = \pred -> \argH -> \argM -> pred ++ "(" ++ argH ++ ":" ++ argM ++ ")" ;
|
|
|
|
app3 : Str -> Str -> Str = \argH -> \argM -> argH ++ ":" ++ argM ;
|
|
|
|
|
|
}
|