Hello, this is not an issue, it is a question.
I tried to use this code for YANG data parsing(javascript).
However, I can not understand some part of the tutorial.
Some code does not follow javascript syntax, and it makes me confused.
In tutorial the authors used " """ " for multiline string.
This is for python, not javascript. right? Am I doing something wrong? please tell me.
After I changed " """ " to "` " it works..
In tutorial, I found '(Yang schema)', and when I try to build with node, an error occurred.
var model= (Yang schema) {
^^^^^^
SyntaxError: Unexpected identifier
I fixed it to schema.eval(yang instance) and it works now.
I'm so confused. If I am doing something wrong, please tell me.
Thanks in advance.
Hello, this is not an issue, it is a question. I tried to use this code for YANG data parsing(javascript). However, I can not understand some part of the tutorial. Some code does not follow javascript syntax, and it makes me confused.
SyntaxError: Unexpected identifier I fixed it to schema.eval(
yang instance
) and it works now.I'm so confused. If I am doing something wrong, please tell me. Thanks in advance.