

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















BR = ( ‘B’ | ‘R’ ) ( ‘E’ | ‘EA’ ) ( ‘D’ | ‘DS’ ). BRVAL Associates variable BRVAL with pattern BR
TEXT “REDPURPLEYELLOWBLUE” COLOR = ‘RED’ | ‘BLUE’ | ‘GREEN’ BASIC TEXT COLOR = :S(BASIC)F(OTHER) OTHER
Is equivalent to saying APRIL = ‘FOOL’
&TRIM = 1 WORDPAT = BREAK(&LCASE &UCASE) SPAN(&LCASE &UCASE "'-"). WORD COUNT = ARRAY('3:9',0) READ LINE = INPUT :F(DONE) NEXTW LINE WORDPAT = :F(READ) COUNT<SIZE(WORD)> = COUNT<SIZE(WORD)>+ 1 :(NEXTW) DONE OUTPUT = "WORD LENGTH NUMBER OF OCCURRENCES" I = 2 PRINT I = I + 1 OUTPUT = LPAD(I,5) LPAD(COUNT,20) :S(PRINT) END
**&ANCHOR = 1; &TRIM = 1 PMPAT = (ARBNO(BAL ANY(‘+-’)) $ X FAIL |