lex

package
v0.0.0-...-4d68494 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

The lex format is basically a parse tree for screenplays, which enables quick debugging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(s Document, out io.Writer)

Types

type Document

type Document []Line

func Parse

func Parse(file io.Reader) (out Document)

Parse walks through the lex file, which contains the element of a screenplay, optionally followed by a colon and space and the actual contents of that element. Special elements exist: newpage, titlepage and metasection. These elements trigger pdf creation instructions.

type Line

type Line struct {
	Type     string
	Contents string
}

Jump to

Keyboard shortcuts

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