You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Until combinator parses all characters up to (but not including) the specified string. The specified string remains unconsumed in the input. If the string is not found, parsing fails.
192
+
The Until combinator will parse characters up to (but not including) one of the specified sentinel string values. If a sentinel value is not found, parsing fails.
193
193
194
194
**BNF**
195
195
196
196
```bnf
197
-
<T> ::= ? any character until 'Z' ?
197
+
<T> ::= ? any character until ['Z'] ?
198
198
```
199
199
200
200
**TypeScript**
201
201
202
202
```typescript
203
-
const T =Runtime.Until('Z') // const T = {
203
+
const T =Runtime.Until(['Z'])// const T = {
204
204
// type: 'Until',
205
-
//value: 'Z'
205
+
//values: ['Z']
206
206
// }
207
207
208
208
const R =Runtime.Parse(T, 'X Y Z') // const R = ['X Y ', 'Z']
0 commit comments