tabulog (version 0.1.1)

name: Parser Names

Description

Get or set the name for a parser

Usage

name(x)

name(x) <- value

Arguments

x

parser

value

Name to be set

Value

The name attribute (should be a character) for the passed object (usually a parser object)

Examples

Run this code
# NOT RUN {
p <- parser('[0-9]+]')

# Default name (NULL)
name(p)

# Set name
name(p) <- 'int'

# Custom name
name(p)

# }

Run the code above in your browser using DataLab