add a mechanism that makes sure only an up-to-date parser.leg.go can be used

This commit is contained in:
Michael Teichgräber 2012-04-30 00:55:37 +02:00
parent cca2b1a3c2
commit b71976ee5d
2 changed files with 14 additions and 0 deletions

View File

@ -24,6 +24,16 @@ import (
"strings" "strings"
) )
const (
// If you get a build error message saying that
// parserIfaceVersion_N is undefined, parser.leg.go
// either is not present or it is out of date. You should
// rebuild it using
// make nuke
// make parser
needParserIfaceVersion = parserIfaceVersion_1
)
// Markdown Options: // Markdown Options:
type Options struct { type Options struct {
Smart bool Smart bool

View File

@ -27,6 +27,10 @@ import (
"log" "log"
) )
const (
parserIfaceVersion_1 = iota
)
// Semantic value of a parsing action. // Semantic value of a parsing action.
type element struct { type element struct {
key int key int