Class Resolver.FirstCalculator

Enclosing class:
Resolver

public class Resolver.FirstCalculator extends Navigate.VisitReachable<Object>
Sets up constants in each Expression, which cache structural properties of the syntax for later parsing.
  • The ".firsts : String -> (Expression+int)" director map (this points to sub-expressions of an ALT or PERM or to starting position numbers of a SEQU!)
  • whether character data is accepted
  • whether epsilon accepted
During this, LL(1) violations are detected.
Visiting starts with the (externally requested) top-level module and follows ONLY references (to declarations contained anywhere!) ATTENTION: Does NOT visit the expressions X in "import _ from _ ^ ( X / _)"
  • Field Details

  • Constructor Details

    • FirstCalculator

      public FirstCalculator()
  • Method Details