kawa.lang

Class SyntaxRules

public class SyntaxRules extends Procedure1 implements Printable, Externalizable

Constructor Summary
SyntaxRules()
SyntaxRules(Object[] literal_identifiers, SyntaxRule[] rules, int maxVars)
The compiler generates calls to this constructor.
SyntaxRules(Object[] literal_identifiers, Object srules, Translator tr)
Method Summary
Objectapply1(Object arg)
Objectexpand(Object obj, Translator tr)
voidprint(Consumer out)
voidreadExternal(ObjectInput in)
voidwriteExternal(ObjectOutput out)

Constructor Detail

SyntaxRules

public SyntaxRules()

SyntaxRules

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

SyntaxRules

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

Method Detail

apply1

public Object apply1(Object arg)

expand

public Object expand(Object obj, Translator tr)

print

public void print(Consumer out)

readExternal

public void readExternal(ObjectInput in)

writeExternal

public void writeExternal(ObjectOutput out)

Serial Data: Write literal_identifiers followed by rules, using writeObject.