例如,当person类被创建时,它显示语法错误是因为它的一个属性address没有定义。
For example, when the Person class was created, it displayed syntax errors because one of its attributes, Address, was undefined.
相反,如果显示错误,则很可能是出现语法错误,您需要小心检查文档,看看是不是丢失标记和标点符号或输入错误。
If instead errors are displayed, you likely have a syntax error and need to review your document carefully for typos or missing tags and punctuation.
这个编辑器显示语义和语法错误所使用的标记是一样的。
The editor shows the same error indicators for semantic and syntax errors.
In this case it says, this is a syntax error, and it's actually highlighting where it came from so I can go back and fix it.
在这个例子中它显示这是个语法错误,并且会高亮显示它的位置,以便于我去修改。
应用推荐