cssparser

package
v0.0.0-...-c5bc608 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParser

func NewParser() *parser

func NewTokenizer

func NewTokenizer(source string) *tokenizer

Types

type Declaration

type Declaration struct {
	Property string
	Value    string
}

type Rule

type Rule struct {
	Selector     []string
	Declarations []Declaration
}

type TokenType

type TokenType uint32
const (
	ErrorToken TokenType = iota
	IdentifierToken
	OpenCurlyBraceToken
	CloseCurlyBraceToken
	OpenSquareBracketToken
	CloseSquareBracketToken
	ColonToken
	SemicolonToken
	CommaToken
	WhitespaceToken
	EOFToken
)

func (TokenType) String

func (t TokenType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL