Module | MOF |
In: |
lib/mof/parser.rb
lib/mof/version.rb lib/mof/helper.rb lib/mof/scanner.rb lib/mof/result.rb lib/mof.rb |
scanner.rb
A scanner module for MOF files to extend the Scanner class (via include)
functions offered:
parse( file ) : start parsing of file next_token : return next [token,value] pair on_error : report error
Class variables:
@file: file being scanned @name: name of file @lineno: current line number in file (for error reports) @iconv: non-nil if iconv needed (i.e. Windows utf-16 mof files) @fstack: stack of [ @file, @name, @lineno, @iconv ] for open files (to handle includes) @q: Queue of [token,value] pairs, [false,false] denotes EOF
VERSION | = | '1.2.5' |