2017-07-07 11:41:37 +02:00
|
|
|
package parser
|
|
|
|
|
|
|
|
import "github.com/osteele/liquid/expression"
|
|
|
|
|
2017-07-07 13:30:32 +02:00
|
|
|
// A Config holds configuration information for parsing and rendering.
|
2017-07-07 11:41:37 +02:00
|
|
|
type Config struct {
|
|
|
|
expression.Config
|
2017-07-09 17:49:24 +02:00
|
|
|
Grammar Grammar
|
|
|
|
Filename string
|
|
|
|
LineNo int
|
2017-07-07 11:41:37 +02:00
|
|
|
}
|
|
|
|
|
2017-07-07 13:30:32 +02:00
|
|
|
// NewConfig creates a parser Config.
|
2017-07-07 11:41:37 +02:00
|
|
|
func NewConfig() Config {
|
2017-07-09 17:49:24 +02:00
|
|
|
return Config{LineNo: 1}
|
2017-07-07 11:41:37 +02:00
|
|
|
}
|