Class AssemblyParseTransitionTable
java.lang.Object
ghidra.app.plugin.assembler.sleigh.parse.AssemblyParseTransitionTable
The transition table defining an LR(0) parsing machine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
forEach
(Consumer<TableEntry<Integer>> consumer) Traverse every entry in the table, invokingConsumer.accept(Object)
on eachget
(int fromState, AssemblySymbol next) Get an entry from the state machineput
(int fromState, AssemblySymbol next, int newState) Put an entry into the state machine
-
Constructor Details
-
AssemblyParseTransitionTable
public AssemblyParseTransitionTable()
-
-
Method Details
-
put
Put an entry into the state machineNOTE: Generally, if this returns non-null, something is probably wrong with your LR(0) machine generator
- Parameters:
fromState
- the source statenext
- the symbol that is matchednewState
- the destination state- Returns:
- the previous value for newState
-
get
Get an entry from the state machine- Parameters:
fromState
- the source statenext
- the symbol that has been matched- Returns:
- the destination state
-
forEach
Traverse every entry in the table, invokingConsumer.accept(Object)
on each- Parameters:
consumer
- the callback
-