In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces what syntax error refers to, the article is very detailed, has a certain reference value, interested friends must read it!
Programming is the process of developing software through code. Some beginners encounter a lot of errors in the process of learning, of which syntax error errors are the most common, so what does syntax error error mean?
What does syntax error mean?
Syntax error means "grammatical error".
In computer science, a syntax error means that the syntax of a program is incorrect and the compiler or interpreter cannot convert it into an appropriate programming language during lexical analysis.
Development
In a compiled language, syntax errors must occur only at compile time, and the compiler needs all the syntax to be correct in order to compile correctly. However, grammatical errors in interpreted languages may not occur until run time, and it is not necessarily easy to distinguish between grammatical errors and semantic errors.
The user interface of the early 8-bit home computer was the BASIC interpreter, and SYNTAX ERROR error messages often caused confusion to the user, as long as the interpreter could not recognize the user's input.
Syntax errors can also occur if incorrect formulas are output in the calculator, such as having left parentheses but no right parentheses in the formula, or multiple decimal points in a number.
In the Java language, the following programs are correct:
System.out.println ("Hello World")
The following procedures are incorrect:
System.out.println (Hello World)
The second program is supposed to display a variable called Hello World, not the word Hello World, and there can be no whitespace in the variable name of the Java language, so there will be syntax errors.
The compiler will mark lines in the program that have syntax errors, and there may also be simple instructions.
The above is what syntax error refers to all the content, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.