程序语言有“语法规则”,由其决定了程序是否构造正确。 编译器检查程序是否违反了语法规则,并且在规则被破坏的时候产生语法错误报告。
Programming languages have a set of syntax rules that determine whether a program is
识别语义错误是十分微妙的,它要求你进行反向的工作检查程序的输出,并且查明它在做什么。
Identifying semantic errors can be tricky because it requires you to work backward by looking at the output of the program and trying to figure out what it is doing.
如果发现错误,将其纠正,再次运行检查程序。
If any errors are found, correct the errors and run the check again.
应用推荐