- Stropping
When applied to
computer language s, stropping refers to the method used to mark letter sequences as having a special property (most often being a keyword or certain type of variable/storage location). For instance, some implementations ofAlgol 68 [http://www.fh-jena.de/~kleine/history/languages/Algol68-RR-HardwareRepresentation.pdf] [van Wijngarten et al (1976) Section 9.3] treat letter sequences prefixed by a single quote, ', as being keywords (e.g.,'BEGIN
) [Lindsey and van der Meulen (1977) pp.348-349] whereasAlgol 60 commonly used only the convention of quotes around the word (e.g.'BEGIN'
or‘BEGIN’
). In fact it was often the case that several stropping conventions might be in use within the one language, and sometimes even within the one language processor, such asALGOL 68RS . TheAtlas Autocode compiler had the choice of three: keywords could beunderlined
using backspace and overstrike on a Flexowriter keyboard, they could be introduced by a%percent %symbol
, or they could be typed inUPPER CASE
with no delimiting character (in which case all variables had to be in lower case).The use of stropping allows the same letter sequence to be used both as a keyword and as an identifier. Most modern programming languages do not use stropping. Exceptions include Ruby and Perl, both of which use sigils to identify characteristics of variables/constants (Perl uses sigils to designate the type of variable, Ruby uses it to distinguish variables from constants and scope). As well as increasing the set of identifiers available, stropping allowed for a much more efficient lexical pre-pass (commonly called 'line reconstruction') before parsing, virtually eliminating the need for a complex lexer such as Lex.
ee also
*
Escape character References
References
*
*
*
Wikimedia Foundation. 2010.