public class Ag extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(Attribute a,
int no) |
void |
add(AttributionBuffer ab) |
Oag |
createSemantics(List<Attribute> firstAttrs) |
AttributionBuffer |
findDefinition(int prod,
AttributeOccurrence ao) |
AttributionBuffer |
get(int i) |
void |
getAttributes(int symbol,
Set<Attribute> internal,
Set<Attribute> synthesized,
Set<Attribute> inherited)
Besides the classic synthesized and inherited attributes, I have internal attributes.
|
Grammar |
getGrammar() |
void |
getProduction(int prod,
Collection<AttributionBuffer> result) |
int |
getSize() |
boolean |
isInternal(Attribute attr) |
String |
toString() |
public Ag(Grammar grammar)
public Grammar getGrammar()
public void add(AttributionBuffer ab)
public void add(Attribute a, int no)
public Oag createSemantics(List<Attribute> firstAttrs) throws GenericException
GenericExceptionpublic int getSize()
public AttributionBuffer get(int i)
public void getProduction(int prod,
Collection<AttributionBuffer> result)
public AttributionBuffer findDefinition(int prod, AttributeOccurrence ao)
public void getAttributes(int symbol,
Set<Attribute> internal,
Set<Attribute> synthesized,
Set<Attribute> inherited)
public boolean isInternal(Attribute attr)
Copyright © 1998–2017 1&1. All rights reserved.