Class Puppet::Parser::Lexer
In: lib/puppet/parser/lexer.rb
Parent: Object

Methods

Classes and Modules

Class Puppet::Parser::Lexer::Token
Class Puppet::Parser::Lexer::TokenList

Constants

TOKENS = TokenList.new
KEYWORDS = TokenList.new

Attributes

file  [R] 
indefine  [RW] 
last  [R] 
lexing_context  [R] 
line  [RW] 

Public Class methods

Public Instance methods

returns the content of the currently accumulated content cache

this is probably pretty damned inefficient… it‘d be nice not to have to load the whole file first…

Find the next token that matches a regex. We look for these first.

Find the next token, returning the string and the token.

scan the whole file basically just used for testing

Make any necessary changes to the token and/or value.

Go up one in the namespace.

Collect the current namespace.

This value might have :in it, but we don‘t care — it‘ll be

handled normally when joining, and when popping we want to pop this full value, however long the namespace is.

Provide some limited access to the scanner, for those tokens that need it.

Skip any skipchars in our remaining string.

we‘ve encountered an opening quote… slurp in the rest of the string and return it

just parse a string, not a whole file

[Validate]