parser

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

README

Wrap Parser

This parser transforms a Wrap or Fountain file into a syntax tree which we can use in the export modules.

WARNING Ye who enter here. This parser was written at a time when the author was fairly inexperienced with Go. As such it isn't the most readable, maintainable nor elegant code. However it works and is fairly quick. A rewrite is something on the todo list for the very far future.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UseWrapExtensions = false

UseWrapExtensions is a flag to show wheter we are using the Wrap extentions or not. The user of this library can change the flag.

Functions

func ParseFile

func ParseFile(filename string) (*ast.Script, error)

ParseFile parses directly from a file path.

func ParseString

func ParseString(script string) (*ast.Script, error)

ParseString parses a string.

func ParseText

func ParseText(text []string) (*ast.Script, error)

ParseText parses a list of strings.

func Parser

func Parser(input io.Reader) (*ast.Script, error)

Parser parses an io.Reader

Types

This section is empty.

Jump to

Keyboard shortcuts

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