×
DON'T FORGET THE LIFESTYLE YOU HAVE PROMISED TO YOURSELF.
--Your friends at LectureNotes
Close

Note for Computer Programming - CP by Yanendra Sah

  • Computer Programming - CP
  • Note
  • 24 Views
  • 1 Offline Downloads
  • Uploaded 9 months ago
0 User(s)
Download PDF

Share it with your friends

Leave your Comments

Text from page-1

Chapter 3

Text from page-2

  The compiler collects the characters of a program into tokens. ◦ Tokens make up the basic vocabulary of a computer language. The compiler then checks the tokens to see if they can be formed into legal strings according to the syntax (the grammar rules) of the language. Chapter 3: DATA TYPES, OPERATORS AND SOME STATEMENT Prepared by : Er. Sakar Niroula 2

Text from page-3

     Lowercase letters ◦a b c . . . z Uppercase letters ◦A B C . . . Z Digits ◦0 1 2 3 4 5 6 7 8 9 Other characters ◦+ - * / = ( ) { } [ ] < > ‘ “ ◦! @ # $ % & _ ^ ~ \ . , ; : ? White space characters ◦ blank, newline, tab, etc. Chapter 3: DATA TYPES, OPERATORS AND SOME STATEMENT Prepared by : Er. Sakar Niroula 3

Text from page-4

      Keywords Identifiers Constants String Constants Operators Special symbol Chapter 3: DATA TYPES, OPERATORS AND SOME STATEMENT Prepared by : Er. Sakar Niroula 4

Lecture Notes