Class AssemblyParseState

java.lang.Object
ghidra.app.plugin.assembler.sleigh.parse.AssemblyParseState
All Implemented Interfaces:
Comparable<AssemblyParseState>

public class AssemblyParseState extends Object implements Comparable<AssemblyParseState>
A state in an LR(0) parsing machine

Each item consists of a kernel and an implied closure. Only the kernel is necessary to define the item, but the whole closure must be considered when deriving new states. The kernel can be retrieved and mutated via getKernel(), then the closure derived from it via getClosure().

  • Constructor Details

    • AssemblyParseState

      public AssemblyParseState(AssemblyGrammar grammar)
      Construct a new state associated with the given grammar
      Parameters:
      grammar - the grammar
    • AssemblyParseState

      public AssemblyParseState(AssemblyGrammar grammar, AssemblyParseStateItem item)
      Construct a new state associated with the given grammar, seeded with the given item
      Parameters:
      grammar - the grammar
      item - an item in the state
  • Method Details