Parsing
┌────────────────────────────────────────┐
┌────────────────────────────────┐
│START
│Token is first one in template. │
│Length=length(source string)
│Match start=1. Match end=1.
└─────────┬──────────────────────┘
┌────────── │
│
│ ┌───────────────────┐yes ┌────────────────────┐
│ │End of template?
├─── │Parsing complete.
│ └─────────┬─────────┘
│
no
│ ┌───────────────────┐
│ │CALL Find Next
│
│ │ Pattern.
│
│ └─────────┬─────────┘
│
│ ┌───────────────────┐
│ │CALL Word Parsing. │
│ └─────────┬─────────┘
│
│ ┌───────────────────┐
│ │Step to next token.│
│ └─────────┬─────────┘
│
│ ┌───────────────────┐ yes ┌────────────────────┐
│ │Token a comma?
├──── │Set next source
│ └─────────┬─────────┘
│
│ no
└────────────┘
Figure 50. Conceptual Overview of Parsing
214
CICS TS for VSE/ESA: REXX Guide
│
│
│
│
└────────────────────┘
│
│string and template.├───┘
└────────────────────┘
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│
│