R: Object sent to grammar rule

YaccProduction {rly} | R Documentation

## Object sent to grammar rule

### Description

This class is a wrapper around the objects actually passed to each grammar rule. Index lookup and assignment actually assign the .value attribute of the underlying YaccSymbol object. The lineno() method returns the line number of a given item (or 0 if not defined). The linespan() method returns a tuple of (startline,endline) representing the range of lines for a symbol. The lexspan() method returns a tuple (lexpos,endlexpos) representing the range of positional information for a symbol.

### Usage

    YaccProduction

### Format

An `R6Class` generator object

[Package rly version 1.6.2 Index]