diff --git a/fzn/arrays.go b/fzn/arrays.go index 6e4a9be..0ae49d3 100644 --- a/fzn/arrays.go +++ b/fzn/arrays.go @@ -6,11 +6,6 @@ import ( "github.com/rhartert/gofzn/fzn/tok" ) -type Array struct { - Start int - End int -} - func parseArrayOf(p *parser) (*Array, error) { if p.next().Type != tok.Array { return nil, fmt.Errorf("should start with array") diff --git a/fzn/types.go b/fzn/types.go index f526174..cb379b6 100644 --- a/fzn/types.go +++ b/fzn/types.go @@ -114,3 +114,8 @@ type RangeInt struct { type RangeFloat struct { Min, Max float64 } + +type Array struct { + Start int + End int +}