Google
 

Trailing-Edge - PDP-10 Archives - steco_19840320_1er_E35 - 10,5676/teco/doc/tecext.rno
There is 1 other file named tecext.rno in the archive. Click here to see a list.
.TITLE TECO extensions
.ap.lm0.rm80
.S2
.C;TTTTTTT###EEEEEEE####CCCCC#####OOOOO#
.C;###T######E#########C#####C###O#####O
.C;###T######E#########C#########O#####O
.C;###T######E#########C#########O#####O
.C;###T######EEEEE#####C#########O#####O
.C;###T######E#########C#########O#####O
.C;###T######E#########C#########O#####O
.C;###T######E#########C#####C###O#####O
.C;###T######EEEEEEE####CCCCC#####OOOOO#
.B3.c;Version 200
.b2.c;March 4, 1980
.b2.c;Stevens Institute of Technology
.B15
Copyright (c) 1980 by
.BREAK
Stevens Institute of Technology, Hoboken, New Jersey, 07030.
.BREAK
All rights reserved.
.BREAK.B
This software is furnished under a license and may be used and copied only in
accordance with the terms of such license and with the inclusion of the above
copyright notice. This software or any other copies thereof may not be provided
or otherwise made available to any other person. No title to and ownership of
the software is hereby transferred.
.BREAK.B2
The information in this software is subject to change without notice and should
not be construed as a commitment by Stevens Institute of Technology.
.page
.st Pattern matching
.HL1 Pattern matching in TECO
A new command has been added to allow the user to find a pattern using
TECO.  The patterns have a syntax similar to that of SNOBOL4, so
users knowing that will be able to understand TECO pattern matching
with little or no problem.
 The command that has been added is the FP command and can be thought
to stand for 'Find Pattern'.
.LM+3
.HL2 Operators
.LM+3
.hl3 AND
.HL3 OR
The format of this operator is 'pattern OR pattern'.
.HL3 NOT
The format of this operator is 'NOT pattern'.
.hl3 Concatenation
This is done by one pattern followed by the second, causing the second
to be concatenated to the first.
.hl3 Parentheses
Parentheses are provided to change the precedence of the operators.
.LM-3
.HL2 Predefined patterns
.LM+3
.HL3 WORD
Match a word.
.hl3 BWORD
Match the beginning of a word
.hl3 BLANK
Match a space or a tab.
.hl3 BLANKS
Match one or more spaces or tabs.
.HL3 SPACE
Match a space.
.hl3 SPACES
Match one or more spaces.
.hl3 TAB
Match a tab.
.HL3 TABS
Match one or more tabs.
.hl3 DIGIT
Match a digit.
.hl3 DIGITS
Match one or more digits.
.hl3 LETTER
Match a letter.
.HL3 LETTER
Match one or more letters.
.hl3 POS
.HL3 RPOS
.HL3 TAB
.HL3 RTAB
.HL3 LEN
.HL3 ELINE
Match the end of line
.hl3 BLINE
Match the beginning of the line.
.LM-3
.LM-3