kawa.lang

Class SyntaxRules

Implemented Interfaces:
Externalizable, Named, Printable

public class SyntaxRules
extends Procedure1
implements Printable, Externalizable

Constructor Summary

SyntaxRules()
SyntaxRules(Object[] literal_identifiers, Object srules, Translator tr)
SyntaxRules(Object[] literal_identifiers, SyntaxRule[] rules, int maxVars)
The compiler generates calls to this constructor.

Method Summary

Object
apply1(Object arg)
Object
expand(Object obj, Translator tr)
void
print(Consumer out)
void
readExternal(ObjectInput in)
void
writeExternal(ObjectOutput out)

Methods inherited from class gnu.mapping.Procedure1

apply0, apply1, apply2, apply3, apply4, applyN, numArgs

Methods inherited from class gnu.mapping.Procedure

apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getSetter, getSourceLocation, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, numArgs, set0, set1, setN, setSetter, setSourceLocation, toString

Methods inherited from class gnu.mapping.PropertySet

getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol

Constructor Details

SyntaxRules

public SyntaxRules()

SyntaxRules

public SyntaxRules(Object[] literal_identifiers,
                   Object srules,
                   Translator tr)

SyntaxRules

public SyntaxRules(Object[] literal_identifiers,
                   SyntaxRule[] rules,
                   int maxVars)
The compiler generates calls to this constructor.

Method Details

apply1

public Object apply1(Object arg)
Overrides:
apply1 in interface Procedure1

expand

public Object expand(Object obj,
                     Translator tr)

print

public void print(Consumer out)
Specified by:
print in interface Printable

readExternal

public void readExternal(ObjectInput in)
            throws IOException,
                   ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
            throws IOException