Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/nearley/mod.ts>Parser#feed

πŸ“œπŸ”œπŸŒ² Simple, fast, powerful parser toolkit for JavaScript.
Latest
method Parser.prototype.feed
import { Parser } from "https://deno.land/x/nearley@2.19.7-deno/mod.ts";

The Parser object can be fed data in parts with .feed(data). You can then find an array of parsings with the .results property. If results is empty, then there are no parsings. If results contains multiple values, then that combination is ambiguous.

Parameters

chunk: string