This change lays some groundwork that registers symbols when doing semantic analysis of the resulting AST. For now, that just entails detecting duplicate services by way of symbol registration. Note that we've also split binding into two phases to account for the fact that intra-stack dependencies are wholly legal.
17 lines
363 B
Go
17 lines
363 B
Go
// Copyright 2016 Marapongo, Inc. All rights reserved.
|
|
|
|
package errors
|
|
|
|
import (
|
|
"github.com/marapongo/mu/pkg/diag"
|
|
)
|
|
|
|
var CouldNotReadMufile = &diag.Diag{
|
|
ID: 150,
|
|
Message: "An IO error occurred while reading the Mufile: %v",
|
|
}
|
|
|
|
var IllegalMufileSyntax = &diag.Diag{
|
|
ID: 151,
|
|
Message: "A syntax error was detected while parsing the Mufile: %v",
|
|
}
|