pacc logo
pacc v0.3: Feeding

21.6 Feeding

Feeding is the mechanism which allows pacc to handle input coming from interactive streams. The user’s input may be a complete utterance, or it may be the start of an utterance. In the latter case, we need to solicit more input.

The points in the grammar where the input may be broken are marked with the ‘$’ token.

Then pacc is invoked with the ‘-f=FILE’ option, it writes its normal output as usual, then it writes an additional parser to the specified ‘FILE’ for a grammar which has been modified in the following ways:

  1. all semantic expressions have been removed;
  2. wherever the ‘$’ token occurs in a sequence, the rest of that sequence is optional;
  3. the interface functions are named ‘pacc_feed_new()’, etc. (or if ‘--name=NAME’ was specified, ‘NAME_feed_new()’, etc.).

Last updated: 2016-08-03 21:39:50 UTC

News

Porting and packaging

One thing pacc needs is more users. And, perhaps, one way to get more users is to reduce the friction in getting started with pacc. An obvious lubricant is packaging. Read More...

Release relief

Looking at _pacc_coords(), I noticed that it seemed to have the same realloc() bug that I'd just fixed in _pacc_result(). However, the "list of arrays" trick really wasn't going to work here. Read More...

See more news articles

feed