pacc logo
pacc v0.3: References

Next: , Previous: , Up: Top   [Contents][Index]


8 References

In any semantic expression, you can write ‘ref()’ which is a reference to whichever part of the input is matched by the current rule. The type of ‘ref()’ is ‘ref_t’, an opaque type. A number of helper functions exist to do useful things with ‘ref_t’ values. In this case, we can utilize the helper function ‘ref_0()’ which returns the first byte of a ‘ref_t’ value.

Digit <- [0-9] -> { ref_0(ref()) - '0' }

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