Library to validate Tomefile Parser output
node, derr := libvalidator.Validate(...)
if derr != nil {
derr.Print(os.Stderr)
os.Exit(1)
}// This has the benefit of having fields expanded:
// - libparser.ExecNode{}.Binary -> changes to full file path to binary
// - libparser.StringNode{}.Segments -> stores format segments
parser := libparser.New(file).With(libparser.Validate)
tree, derr := parser.Parse()
if derr != nil {
derr.Print(os.Stderr)
os.Exit(1)
}