Class AssemblyStringMapTerminal

All Implemented Interfaces:
Comparable<AssemblySymbol>

public class AssemblyStringMapTerminal extends AssemblyTerminal
A terminal that accepts only a particular set of strings, mapping each to a numeric value
See Also:
  • Field Details

    • map

      protected final org.apache.commons.collections4.MultiValuedMap<String,Integer> map
  • Constructor Details

    • AssemblyStringMapTerminal

      public AssemblyStringMapTerminal(String name, org.apache.commons.collections4.MultiValuedMap<String,Integer> map)
      Construct a terminal with the given name, accepting only the keys of a given map
      Parameters:
      name - the name
      map - the map from display text to token value
  • Method Details