summaryrefslogtreecommitdiff
path: root/lex/type.go
diff options
context:
space:
mode:
authorJoop Kiefte <ikojba@gmail.com>2018-12-31 21:40:58 +0100
committerJoop Kiefte <ikojba@gmail.com>2018-12-31 21:40:58 +0100
commit17e35aa8dbc5ddb5e3542a57f14dd16627d37d64 (patch)
tree54c4905d49cc5abfa9f63e2d402b035ac147a459 /lex/type.go
parent32b146fc5411f8db35824c82e9cafc4cdb6f1d41 (diff)
First working version. Fountain support is still very bad.
Diffstat (limited to 'lex/type.go')
-rw-r--r--lex/type.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/lex/type.go b/lex/type.go
index 47439f4..3b49eee 100644
--- a/lex/type.go
+++ b/lex/type.go
@@ -1,10 +1,5 @@
package lex
-import (
- "io"
- "fmt"
-)
-
type Screenplay []Line
type Line struct{
@@ -12,12 +7,3 @@ type Line struct{
Contents string
}
-func Parse(file io.Reader) (out Screenplay) {
- var err error
- line := Line{}
- for err == nil {
- _, err = fmt.Fscanf(file, "%s: %s", &line.Type, &line.Contents)
- out = append(out, line)
- }
- return out
-}