Skip to content
grammarware edited this page Jan 18, 2013 · 5 revisions

A definition of a fresh nonterminal is added. The addV operator should be used instead, if the nonterminal is already defined, is to be merely extended. The define operator should be used instead, if the nonterminal is readily in use, but merely lacks a definition.

Syntax

introduce:
        production+

Example

For instance,

a:
        b
b:
        ε

After using this transformation:

introduce(
 c:
        a
 c:
        b
);

Will look like this:

a:
        b
b:
        ε
c:
        a
c:
        b

Relevant files

See also

  • Extract is a part of XBGF

Contributors

Clone this wiki locally