alias CLTK::Parser::Opts

Overview

This method will finalize the parser causing the construction of states and their actions, and the resolution of conflicts using lookahead and precedence information.

No calls to {Parser.production} may appear after the call to Parser.finalize.

@param [Hash] opts Options describing how to finalize the parser.

@option opts [Boolean,String,IO] :explain To explain the parser or not. @option opts [Boolean] :lookahead To use lookahead info for conflict resolution. @option opts [Boolean] :precedence To use precedence info for conflict resolution. @option opts [String,IO] :use A file name or object that is used to load/save the parser.

@return [void]

Alias Definition

{explain: Bool | IO | String, lookahead: Bool, precedence: Bool}

Defined in:

cltk/parser.cr