class
   Ktistec::Parser
 
  - Ktistec::Parser
 - Reference
 - Object
 
Overview
Parses an input into a syntax tree.
Defined in:
utils/parser.crConstructors
- 
        .new(input : String)
        
          
Creates a parser for the given input.
 
Instance Method Summary
- 
        #advance(id : String | Nil = nil)
        
          
Advances the parser to the next node.
 - 
        #current : Node
        
          
Returns the current node.
 - 
        #expression(rbp = 0)
        
          
Parses next expression.
 - 
        #statement
        
          
Parses next statement.
 - 
        #statements
        
          
Returns all statements.
 
Constructor Detail
Instance Method Detail
        
        def advance(id : String | Nil = nil)
        #
      
      
        Advances the parser to the next node.
If id is specified, raise an error if the id of the current
node does not match the specified id.