parser

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

This is a *generic* implementation of a lexer. gengen should be used to create a specific version of this lexer. If this file does not contain the gengen package, then it has already been generated by gengen. TODO: remove this hack if/when golang ever supports proper generics.

parser package defines the parser and lexer for translating a *supported subset* of WebIDL (http://www.w3.org/TR/WebIDL/) into an AST.

Copyright 2015 The Serulian Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

View Source
const EOFRUNE = -1

Variables

This section is empty.

Functions

func Dump

func Dump(w io.Writer, n ast.Node) error

func DumpString

func DumpString(n ast.Node) string

func Parse

func Parse(input string) *ast.File

Parse parses the given WebIDL source into a parse tree.

Types

This section is empty.

Jump to

Keyboard shortcuts

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