deployr: Index | Files

package lexer

import ""

Package lexer contains a simple lexer for reading an input-string and converting it into a series of tokens.


Package Files


type Lexer Uses

type Lexer struct {
    // contains filtered or unexported fields

Lexer is used as the lexer for our deployr "language".

func New Uses

func New(input string) *Lexer

New a Lexer instance from string input.

func (*Lexer) Dump Uses

func (l *Lexer) Dump()

Dump outputs the complete stream of tokens from the lexer, consuming all input as it does so.

func (*Lexer) NextToken Uses

func (l *Lexer) NextToken() token.Token

NextToken to read next token, skipping the white space.

Package lexer imports 3 packages (graph) and is imported by 1 packages. Updated 2020-03-01. Refresh now. Tools for package owners.