Example Program Compiled-Continued

Example Program Compiled-Continued

Identifiers: x argsv sample my_name Your_Name

Numeric Constants: 1997 45.89 19.9e+7

String Constants: “Rennselaer” “RSV's course”

Scanner’s task is to partition the sequence of characters

into a sequence of tokens.

The tokens will be public , class, first,{, public, static, void,

main,(,String,argsv,[,],),{,int,x,;,x,=,19,;,x,=,x,*,x,;,},}

Previous slide Next slide Back to the first slide View Graphic Version