(prefix: ParseYieldable)
| 145 | } |
| 146 | |
| 147 | export function has(prefix: ParseYieldable): () => ParseGenerator<boolean> { |
| 148 | return function* () { |
| 149 | return (yield [prefix, '']) !== ''; |
| 150 | }; |
| 151 | } |
| 152 | |
| 153 | export function optional(...potentials: Array<ParseYieldable | any>): () => ParseGenerator<any> { |
| 154 | return function* () { |
no outgoing calls