summaryrefslogtreecommitdiff
path: root/lex/write.go
blob: b8ee6c2568998198041615ff54e22235d2812d4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package lex

import (
	"fmt"
	"io"
)

func Write(s Screenplay, out io.Writer) {
	for _, line := range s {
		fmt.Fprintf(out, "%s: %s\n", line.Type, line.Contents)
	}
}