func main() {
texto := "mkdisk -size -path -unit -fit"
p := parser.NewParser()
s := lexer.NewLexer([]byte(texto))
res, err := p.Parse(s)
if err != nil {
fmt.Println("Se produjo un error.")
} else if res != nil {
fmt.Println("Se reconoció la instrucción.")
}
}
However the parse input, I am not able to correctly read the latest production of Opc (MLinea) and a syntax error. I think the definition is correct, but I don't get the desired result.
What am I doing wrong?
Thanks