English
Language : 

CC78K0S Datasheet, PDF (34/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 2 CONSTRUCTS OF C LANGUAGE
This chapter explains the constituting elements of a C source module file.
A C source module file consists of the following tokens (distinguishable units in a sequence of characters).
Keywords
String literal
Header name
Identifiers
Operators
No. of preprocesses
Constants
Delimiters
Comment
The tokens used in the C program description example are shown below.
#include “expand.h”
extern void testb(void);
extern............................................................ Keyword
extern void chgb(void);
extern bit data1;
extern bit data2;
void main()
{
data1=1;
data2=0;
while(data1){
data1=data2;
testb();
}
if(data1&&data2){
chgb();
}
}
data1, data2.................................................. Identifiers
void ............................................................... Keyword
1....................................................................
0....................................................................
Constant
Constant
while..............................................................
{ } .................................................................
=....................................................................
Keyword
Delimiter
Operator
if ....................................................................
&& .................................................................
( ) .................................................................
Keyword
Operator
Operator
void lprintf(char *s,int i)
{
int j;
char *ss;
j=i;
ss=s;
}
.
.
.
lprintf .............................................................
char, int.........................................................
s, i .................................................................
* ....................................................................
Identifier
Keywords
Identifiers
Operator
34
User’s Manual U14872EJ1V0UM