mk/mk.go

26 lines
454 B
Go
Raw Normal View History

2013-02-25 21:25:25 -08:00
package main
import (
2013-02-26 22:41:25 -08:00
//"fmt"
//"io/ioutil"
//"os"
2013-02-25 21:25:25 -08:00
)
func main() {
2013-02-26 22:41:25 -08:00
//input, _ := ioutil.ReadAll(os.Stdin)
// TEST LEXING
//_, tokens := lex(string(input))
//for t := range tokens {
//fmt.Printf("%s %s\n", t.typ, t.val)
//}
// TEST PARSING
//rs := parse(string(input), "<stdin>")
//fmt.Println(rs)
// TEST STRING EXPANSION
rules := &ruleSet{make(map[string][]string), make([]rule, 0)}
println(rules.expand("\"This is a quote: \\\"\""))
2013-02-25 21:25:25 -08:00
}