context manuals sources
Hi, I'm trying to figure out the meaning and use of the c! and v! prefixes in commands in, for example, the layo-xx.tex source files at http://context.aanhet.net/svn/manuals/context/ aka... \setupcolors [\c!state=\v!start] \setupsystem [\c!random=\v!big] \setuplayout [\c!location=\v!middle, \c!style=\ss, \c!backspace=2.5cm, \c!topspace=1.5cm, \c!width=16cm, \c!margindistance=.25cm, \c!margin=2.5cm, \c!height=\v!middle] :Oo ? Alan
Alan Stone wrote:
Hi,
I'm trying to figure out the meaning and use of the c! and v! prefixes in commands in, for example, the layo-xx.tex source files at http://context.aanhet.net/svn/manuals/context/ aka...
c is a constant (LHS), v is a variable (RHS enumeration). Best wishes, Taco
Euuuh, other than constant and variable...
LHS, RHS and enumeration are like klingon to me. :O)
Are these terms important to understand the code ?
Alan
On Sun, Jun 29, 2008 at 12:52 PM, Taco Hoekwater
Alan Stone wrote:
Hi,
I'm trying to figure out the meaning and use of the c! and v! prefixes in commands in, for example, the layo-xx.tex source files at http://context.aanhet.net/svn/manuals/context/ aka...
c is a constant (LHS), v is a variable (RHS enumeration).
Best wishes, Taco
In a parser, a piece of code that interprets a set of structured rules (grammar) from a (partially or fully) tokenized input stream from the lexical analyzer at the front end, LHS is something on the left hand side of an equation or term (thus, on the left-hand parse tree) and RHS is on the right hand side. There are free sources out there to find stuff on parsing so you don't have to go and buy the Dragon book (Aho, Sethi, Ullmann), which I nevertheless consider a vade mecum. You will find links to such documentation under the computer -> reference category at: http://yoel.info/links.htm Best wishes, and welcome to the world of artificial languages. Charles On Sun, 2008-06-29 at 13:09 +0200, Alan Stone wrote:
Euuuh, other than constant and variable...
LHS, RHS and enumeration are like klingon to me. :O)
Are these terms important to understand the code ?
Alan
On Sun, Jun 29, 2008 at 12:52 PM, Taco Hoekwater
wrote: Alan Stone wrote:
Hi,
I'm trying to figure out the meaning and use of the c! and v! prefixes in commands in, for example, the layo-xx.tex source files at http://context.aanhet.net/svn/manuals/context/ aka...
c is a constant (LHS), v is a variable (RHS enumeration).
Best wishes, Taco
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Sun, 29 Jun 2008, Alan Stone wrote:
Euuuh, other than constant and variable...
See http://wiki.contextgarden.net/System_Macros/Scratch_Variables
LHS, RHS and enumeration are like klingon to me. :O)
Are these terms important to understand the code ?
While reading code you can simply ignore them. You can also ignore them while writing code (at least initially). The advantage of these \v! \c! thingies is that it makes it easier to catch typos and write a multi-lingual interface. Aditya
Alan
On Sun, Jun 29, 2008 at 12:52 PM, Taco Hoekwater
wrote: Alan Stone wrote:
Hi,
I'm trying to figure out the meaning and use of the c! and v! prefixes in commands in, for example, the layo-xx.tex source files at http://context.aanhet.net/svn/manuals/context/ aka...
c is a constant (LHS), v is a variable (RHS enumeration).
Best wishes, Taco
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Sun, Jun 29, 2008 at 5:53 PM, Aditya Mahajan
On Sun, 29 Jun 2008, Alan Stone wrote:
Euuuh, other than constant and variable...
See http://wiki.contextgarden.net/System_Macros/Scratch_Variables
Ahaa... I thought they were "Scratch_Your_Head_Variables". :O) Thanks all for your enlightening comments. Alan
participants (4)
-
Aditya Mahajan
-
Alan Stone
-
Charles P. Schaum
-
Taco Hoekwater