parser

package
Version: v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(text string) (*css.Stylesheet, error)

Parse parses a whole stylesheet

func ParseDeclarations

func ParseDeclarations(text string) ([]*css.Declaration, error)

ParseDeclarations parses CSS declarations

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser represents a CSS parser

func NewParser

func NewParser(txt string) *Parser

NewParser instanciates a new parser

func (*Parser) ParseDeclaration

func (parser *Parser) ParseDeclaration() (*css.Declaration, error)

ParseDeclaration parses a declaration

func (*Parser) ParseDeclarations

func (parser *Parser) ParseDeclarations() ([]*css.Declaration, error)

ParseDeclarations parses a list of declarations

func (*Parser) ParseRule

func (parser *Parser) ParseRule() (*css.Rule, error)

ParseRule parses a rule

func (*Parser) ParseRules

func (parser *Parser) ParseRules() ([]*css.Rule, error)

ParseRules parses a list of rules

func (*Parser) ParseStylesheet

func (parser *Parser) ParseStylesheet() (*css.Stylesheet, error)

ParseStylesheet parses a stylesheet

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL