yieldparser
yieldparser copied to clipboard
Parse using JavaScript generator functions — it’s like components but for parsing!
This PR adds the "types" field to the exports in the package.json pointed to the generated `dist/index.d.ts`. Without it, my project was unable to pull any types for yieldparser, which...
https://csvbase.com/blog/2
e.g. s-maxage will return `{ cachedByEdge: true, cachedByBrowser: false }` See also: - https://mobile.twitter.com/BHolmesDev/status/1588168499507216384 - https://vercel.com/docs/concepts/functions/edge-functions/edge-caching
## XML Parser - Can parse XML elements into a node tree - Output: XML node tree ## Custom XML Parser - Can parse XML with a known set of...
One allows a remainder, the other doesn’t. Also instead of yielding `mustEnd`, you could yield `canContinue`/`isPrefix`/`hasMore` etc.
```js yield guard(digit
Link to Elixir implementation as well as the JavaScript one.
We could make really small, fast, cross-platform parsers.
Include using [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) ```js function* GetHealth() { yield '/health' return async () => { const sourceURL = 'https://cdn.jsdelivr.net/gh/RoyalIcing/yieldmachine@4478530fc40c3bf1208f8ea477f455ad34da308d/readme.md' const sourceText = await fetch(sourceURL).then(res => res.text()) const html = md.render(sourceText) return...
For example, like you'd see in the EcmaScript specification for syntax.