709 |
Here is a simple C function subdivided into tokens: |
Here is a simple C function subdivided into tokens: |
710 |
|
|
711 |
int /* keyword `int' */ |
int /* keyword `int' */ |
712 |
square (x) /* identifier, open-paren, */ |
square (int x) /* identifier, open-paren, identifier, |
713 |
/* identifier, close-paren */ |
identifier, close-paren */ |
|
int x; /* keyword `int', identifier, semicolon */ |
|
714 |
{ /* open-brace */ |
{ /* open-brace */ |
715 |
return x * x; /* keyword `return', identifier, */ |
return x * x; /* keyword `return', identifier, asterisk, |
716 |
/* asterisk, identifier, semicolon */ |
identifier, semicolon */ |
717 |
} /* close-brace */ |
} /* close-brace */ |
718 |
|
|
719 |
The syntactic groupings of C include the expression, the statement, |
The syntactic groupings of C include the expression, the statement, |