mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-14 07:19:31 -06:00
71 lines
1.8 KiB
HTML
71 lines
1.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
|
<TITLE> Symbolic expressions</TITLE>
|
|
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
|
<P ALIGN="center"><CENTER><H1> Symbolic expressions</H1>
|
|
<FONT SIZE="4">
|
|
<I>Last update: Sat Feb 25 22:36:00 2006</I><BR>
|
|
% NOTE: this is a txt2tags file.
|
|
</FONT></CENTER>
|
|
|
|
<P></P>
|
|
<HR NOSHADE SIZE=1>
|
|
<P></P>
|
|
<UL>
|
|
<LI><A HREF="#toc1">Noun phrases with symbols and numbers</A>
|
|
<LI><A HREF="#toc2">Symbol lists</A>
|
|
</UL>
|
|
|
|
<P></P>
|
|
<HR NOSHADE SIZE=1>
|
|
<P></P>
|
|
<P>
|
|
Produced by
|
|
gfdoc - a rudimentary GF document generator.
|
|
(c) Aarne Ranta (<A HREF="mailto:aarne@cs.chalmers.se">aarne@cs.chalmers.se</A>) 2002 under GNU GPL.
|
|
</P>
|
|
<P>
|
|
<B>Note</B>. This module is not automatically included in the main
|
|
grammar <A HREF="Lang.html">Lang</A>.
|
|
</P>
|
|
<PRE>
|
|
abstract Symbol = Cat, PredefAbs ** {
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc1"></A>
|
|
<H2>Noun phrases with symbols and numbers</H2>
|
|
<PRE>
|
|
fun
|
|
|
|
SymbPN : Symb -> PN ; -- x
|
|
IntPN : Int -> PN ; -- 27
|
|
FloatPN : Float -> PN ; -- 3.14159
|
|
CNIntNP : CN -> Int -> NP ; -- level 53
|
|
CNSymbNP : Det -> CN -> [Symb] -> NP ; -- (the) (2) numbers x and y
|
|
</PRE>
|
|
<P></P>
|
|
<A NAME="toc2"></A>
|
|
<H2>Symbol lists</H2>
|
|
<P>
|
|
A symbol list has at least two elements. The last two are separated
|
|
by a conjunction (<I>and</I> in English), the others by commas.
|
|
This produces <I>x, y and z</I>, in English.
|
|
</P>
|
|
<PRE>
|
|
cat
|
|
Symb ;
|
|
[Symb]{2} ;
|
|
|
|
fun
|
|
MkSymb : String -> Symb ;
|
|
|
|
}
|
|
</PRE>
|
|
<P></P>
|
|
|
|
<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
|
|
<!-- cmdline: txt2tags -thtml -\-toc mathematical/Symbol.txt -->
|
|
</BODY></HTML>
|