answersLogoWhite

0


Best Answer

Definitely! Some compilers and languages are more forgiving but all computer languages that I know of care about punctuation.

For example:

in Javascript it is ok to not have a semicolon at the end of a line but in Java it is required. So the following is ok in Javascript but not in Java:

a = 5

but Javascript still cares about punctuation, so the following would be invalid:

a = 5!

Of course it would be possible to create a programming language which ignored all punctuation (so ",!a; = :5?" would mean the same as "a = 5") but why would you want to?

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Does punctuation matter to the compiler?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which of these is a matter of mechanics is it punctuation or capitalization or spelling?

Spelling is a matter of mechanics, as it relates to the correct arrangement of letters to form words. Punctuation and capitalization are more related to grammar and style.


What is the right punctuation for the above subject matter refers?

The correct punctuation for the subject matter you referred to should include a question mark at the end of the sentence. This helps to indicate that the sentence is a question.


Why variable names are restricted?

To make the compiler/interpreter's work easier. In a happier word any kanji symbol or punctuation mark could be a variable name (or even a space!).


Do poems need punctuations?

Poems generally have punctuation. It's a matter of style though.


How many types of compiler naming in list?

cross compiler . hybird compiler . post compiler. ideal compiler. intelligence compiler.


What does this compiler error mean ' ' in java?

Simply, the error that your compiler catches is called compiler error. Doesn't matter if you are in Eclipse, NetBeans or Intellij IDEA, all these IDE's are very smart. They can detect if you made any any mistakes in your program. Common compiler errors are- -When you try and access a variable that is out of scope -When you forget to give a semicolon. -When you will try to use a reserved keyword like - return. -Any syntax error that your compiler might find suspicious, will cause compiler to throw an error.


What is DML Compiler?

What is difference between Compiler and DML Compiler


What are the difference between a compiler design and a compiler?

In Compiler there is no design word ,whereas in compiler design there is design word


What are the responsibilities of a compiler?

What are the responsibities of a compiler


What is the meaning of code has no effect in function main in c language?

When the compiler says "code has no effect", it is saying that it does not matter if the code is executed or not - the end result will be the same. The compiler, if in optimizing mode, can and should delete the code. An example of code that has no effect is a = a;


What are the four types of grammars used in compiler?

-Single pass compiler -Multi pass compiler -Cross compiler -Optimizing compiler


It is possible to build a C compiler on top of a C compiler?

It is possible to build a C compiler on top of a C compiler. From the directory, run the shell script.