-10
README.md
-10
README.md
···
410
410
parser. We can now call our grammar using a tagged template literal themselves
411
411
to parse this.
412
412
413
-
```js
414
-
import { interpolation } from 'reghex';
415
-
416
-
const anyNumber = interpolation((x) => typeof x === 'number');
417
-
418
-
const num = match('num')`
419
-
${/[+-]?/} ${anyNumber}
420
-
`;
421
-
```
422
-
423
413
**That's it! May the RegExp be ever in your favor.**