Intel XENIX 286 Programmers Guide (86) - Tenox.tc
Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc
XENIX Programming The definitions section contains a combination of • Definitions, in the form "name space translation" • Included code, in the form "space code" • Included code, in the form %{ code % } • Start conditions, in the form %5 name1 name2 ... • Character set tables, in the form %T number space character-string %T • Changes to internal array sizes, in the form %x nnn lex: Lexical Analyzer Generator where nnn is a decimal integer representing an array size and x selects the parameter as follows: Letter p n e a k 0 Parameter positions states tree nodes transitions packed character classes output array size Lines in the rules section have the form expression action where the action may be continued on succeeding lines by using braces to delimit it. 9-23
lex: Lexical Analyzer Generator Regular expressions in lex use the following operators: x The character x "x" An x, even if x is an operator \x An x, even if x is an operator [xy] The character x or y [x-z] The characters x, y, or z ["x] Any character but x "x X x$ x? x* x+ xly (x} x/y {xx} x{m,n} 9-24 Any character but newline An x at the beginning of a line An x when lex is in start condition y An x at the end of a line An optional x 0,1,2, ••• instances of x 1,2,3, .•. instances of x An x or a y An x An x but only if followed by y The translation of xx from the definitions section m through n occurrences of x XENIX Programming
- Page 149 and 150: as: Assembler XENIX Programming lnt
- Page 151 and 152: as: Assembler XENIX Programming Imm
- Page 153 and 154: as: A sse m bier XENIX Programming
- Page 156 and 157: CHAPTER 8 csh : C SHEll The C shell
- Page 158 and 159: XENIX Programming csh: C Shell Some
- Page 160 and 161: XENIX Programm ing *w 32 * q % !c -
- Page 162 and 163: XENIX Programming csh: C Shell the
- Page 164 and 165: XENIX Programming csh: C Shell Usin
- Page 166 and 167: XENIX Programming csh: C Shell Usin
- Page 168 and 169: XENIX Programming csh: C Shell The
- Page 170 and 171: XENIX Programming csh: C Shell Note
- Page 172 and 173: XENIX Programming switch ( string c
- Page 174 and 175: XENIX Programming csh: C Shell Star
- Page 176 and 177: XENIX Programming csh: C Shell Spec
- Page 178 and 179: CHAPTER 9 lex : LEXICAL ANA LYZER G
- Page 180 and 181: XENIX Programming lex: Lexical Anal
- Page 182 and 183: XENIX Programming lex: Lexical Anal
- Page 184 and 185: XENIX Programming lex: Lexical Anal
- Page 186 and 187: XENIX Programming lex: Lexical Anal
- Page 188 and 189: XENIX Programming lex: Lexical Anal
- Page 190 and 191: XENIX Programming lex: Lexical Anal
- Page 192 and 193: XENIX Programm ing lex: Lexical Ana
- Page 194 and 195: XENIX Programming Specifying Source
- Page 196 and 197: XENIX Programming lex: Lexical Anal
- Page 198 and 199: XENIX Programming lex: Lexical Anal
- Page 202 and 203: CHAPTER 10 yacc: COMPILER-COMPILER
- Page 204 and 205: XENIX Programming yacc: Compiler-Co
- Page 206 and 207: XENIX Programming yacc: Compiler-Co
- Page 208 and 209: XENIX Programming yacc: Compiler-Co
- Page 210 and 211: XENIX Programming yacc: Compiler-Co
- Page 212 and 213: XENIX Programming yacc: Compiler-Co
- Page 214 and 215: XENIX Programming yacc: Compiler-Co
- Page 216 and 217: XENIX Programming yacc: Compiler-Co
- Page 218 and 219: XENIX Programming yacc: Compiler-Co
- Page 220 and 221: XENIX Programming yacc: Compiler-Co
- Page 222 and 223: XENIX Programming yacc: Compiler-Co
- Page 224 and 225: XENIX Programming yacc: Compiler-Co
- Page 226 and 227: XENIX Programming yacc: Compiler-Co
- Page 228 and 229: XENIX Programming yacc: Compiler-Co
- Page 230 and 231: XENIX Programming yacc: Compiler-Co
- Page 232 and 233: XENIX Programming yacc: Compiler-Co
- Page 234 and 235: XENIX Programming yacc: Compiler-Co
- Page 236 and 237: XENIX Programming %left %left %left
- Page 238 and 239: XENIX Programming I* lexical analys
- Page 240: XENIX Programming yacc: Compiler-Co
- Page 243 and 244: m4: Macro Processor XENIX Programmi
- Page 245 and 246: m4: Macro Processor XENIX Programmi
- Page 247 and 248: m4: Macro Processor XENIX Programm
- Page 249 and 250: m4: Macro Processor XENIX Programmi
lex: Lexical Analyzer Generator<br />
Regular expressions in lex use the following operators:<br />
x The character x<br />
"x" An x, even if x is an operator<br />
\x An x, even if x is an operator<br />
[xy] The character x or y<br />
[x-z] The characters x, y, or z<br />
["x] Any character but x<br />
"x<br />
X<br />
x$<br />
x?<br />
x*<br />
x+<br />
xly<br />
(x}<br />
x/y<br />
{xx}<br />
x{m,n}<br />
9-24<br />
Any character but newline<br />
An x at the beginning of a line<br />
An x when lex is in start condition y<br />
An x at the end of a line<br />
An optional x<br />
0,1,2, ••• instances of x<br />
1,2,3, .•. instances of x<br />
An x or a y<br />
An x<br />
An x but only if followed by y<br />
The translation of xx from the definitions section<br />
m through n occurrences of x<br />
<strong>XENIX</strong> Programming