...

Text file src/github.com/alecthomas/chroma/lexers/testdata/arduino.expected

Documentation: github.com/alecthomas/chroma/lexers/testdata

     1[
     2  {"type":"CommentPreproc","value":"#include"},
     3  {"type":"Text","value":" "},
     4  {"type":"CommentPreprocFile","value":"\u003cServo.h\u003e"},
     5  {"type":"CommentPreproc","value":"\n#include"},
     6  {"type":"Text","value":" "},
     7  {"type":"CommentPreprocFile","value":"\u003cAdafruit_NeoPixel.h\u003e"},
     8  {"type":"CommentPreproc","value":"\n"},
     9  {"type":"Text","value":"\n"},
    10  {"type":"NameClass","value":"Servo"},
    11  {"type":"Text","value":" "},
    12  {"type":"Name","value":"elbow_servo"},
    13  {"type":"Punctuation","value":";"},
    14  {"type":"Text","value":" \n"},
    15  {"type":"NameClass","value":"Servo"},
    16  {"type":"Text","value":" "},
    17  {"type":"Name","value":"wrist_servo"},
    18  {"type":"Punctuation","value":";"},
    19  {"type":"Text","value":"\n"},
    20  {"type":"Keyword","value":"const"},
    21  {"type":"Text","value":" "},
    22  {"type":"KeywordType","value":"int"},
    23  {"type":"Text","value":" "},
    24  {"type":"Name","value":"potpin"},
    25  {"type":"Text","value":" "},
    26  {"type":"Operator","value":"="},
    27  {"type":"Text","value":" "},
    28  {"type":"LiteralNumberInteger","value":"0"},
    29  {"type":"Punctuation","value":";"},
    30  {"type":"Text","value":"  "},
    31  {"type":"CommentSingle","value":"// analog pin used to connect the potentiometer\n"},
    32  {"type":"KeywordType","value":"int"},
    33  {"type":"Text","value":" "},
    34  {"type":"Name","value":"val"},
    35  {"type":"Punctuation","value":";"},
    36  {"type":"Text","value":"    "},
    37  {"type":"CommentSingle","value":"// variable to read the value from the analog pin\n"},
    38  {"type":"Text","value":"\n"},
    39  {"type":"CommentSingle","value":"//// button cycles through controlling each color\n//// in the neopixel.  state 0=stop, 1=red, 2=blue, 3=green, 4=all/white\n"},
    40  {"type":"Keyword","value":"const"},
    41  {"type":"Text","value":" "},
    42  {"type":"KeywordType","value":"int"},
    43  {"type":"Text","value":" "},
    44  {"type":"Name","value":"button_pin"},
    45  {"type":"Text","value":" "},
    46  {"type":"Operator","value":"="},
    47  {"type":"Text","value":" "},
    48  {"type":"LiteralNumberInteger","value":"4"},
    49  {"type":"Punctuation","value":";"},
    50  {"type":"Text","value":"\n"},
    51  {"type":"KeywordType","value":"int"},
    52  {"type":"Text","value":" "},
    53  {"type":"Name","value":"buttonState"},
    54  {"type":"Punctuation","value":";"},
    55  {"type":"Text","value":"             "},
    56  {"type":"CommentSingle","value":"// the current reading from the input pin\n"},
    57  {"type":"KeywordType","value":"int"},
    58  {"type":"Text","value":" "},
    59  {"type":"Name","value":"lastButtonState"},
    60  {"type":"Text","value":" "},
    61  {"type":"Operator","value":"="},
    62  {"type":"Text","value":" "},
    63  {"type":"KeywordConstant","value":"HIGH"},
    64  {"type":"Punctuation","value":";"},
    65  {"type":"Text","value":"   "},
    66  {"type":"CommentSingle","value":"// the previous reading from the input pin\n// the following variables are unsigned longs because the time, measured in\n// milliseconds, will quickly become a bigger number than can be stored in an int.\n"},
    67  {"type":"KeywordType","value":"unsigned"},
    68  {"type":"Text","value":" "},
    69  {"type":"KeywordType","value":"long"},
    70  {"type":"Text","value":" "},
    71  {"type":"Name","value":"lastDebounceTime"},
    72  {"type":"Text","value":" "},
    73  {"type":"Operator","value":"="},
    74  {"type":"Text","value":" "},
    75  {"type":"LiteralNumberInteger","value":"0"},
    76  {"type":"Punctuation","value":";"},
    77  {"type":"Text","value":"  "},
    78  {"type":"CommentSingle","value":"// the last time the output pin was toggled\n"},
    79  {"type":"KeywordType","value":"unsigned"},
    80  {"type":"Text","value":" "},
    81  {"type":"KeywordType","value":"long"},
    82  {"type":"Text","value":" "},
    83  {"type":"Name","value":"debounceDelay"},
    84  {"type":"Text","value":" "},
    85  {"type":"Operator","value":"="},
    86  {"type":"Text","value":" "},
    87  {"type":"LiteralNumberInteger","value":"50"},
    88  {"type":"Punctuation","value":";"},
    89  {"type":"Text","value":"    "},
    90  {"type":"CommentSingle","value":"// the debounce time; increase if the output flickers\n"},
    91  {"type":"KeywordType","value":"int"},
    92  {"type":"Text","value":" "},
    93  {"type":"Name","value":"led_control_state"},
    94  {"type":"Text","value":" "},
    95  {"type":"Operator","value":"="},
    96  {"type":"Text","value":" "},
    97  {"type":"LiteralNumberInteger","value":"0"},
    98  {"type":"Punctuation","value":";"},
    99  {"type":"Text","value":"\n\n"},
   100  {"type":"Keyword","value":"const"},
   101  {"type":"Text","value":" "},
   102  {"type":"KeywordType","value":"int"},
   103  {"type":"Text","value":" "},
   104  {"type":"Name","value":"pixel_pin"},
   105  {"type":"Text","value":" "},
   106  {"type":"Operator","value":"="},
   107  {"type":"Text","value":" "},
   108  {"type":"LiteralNumberInteger","value":"6"},
   109  {"type":"Punctuation","value":";"},
   110  {"type":"Text","value":"\n"},
   111  {"type":"Keyword","value":"const"},
   112  {"type":"Text","value":" "},
   113  {"type":"KeywordType","value":"int"},
   114  {"type":"Text","value":" "},
   115  {"type":"Name","value":"num_leds"},
   116  {"type":"Text","value":" "},
   117  {"type":"Operator","value":"="},
   118  {"type":"Text","value":" "},
   119  {"type":"LiteralNumberInteger","value":"2"},
   120  {"type":"Punctuation","value":";"},
   121  {"type":"Text","value":"\n"},
   122  {"type":"Name","value":"Adafruit_NeoPixel"},
   123  {"type":"Text","value":" "},
   124  {"type":"Name","value":"pixel"},
   125  {"type":"Text","value":" "},
   126  {"type":"Operator","value":"="},
   127  {"type":"Text","value":" "},
   128  {"type":"Name","value":"Adafruit_NeoPixel"},
   129  {"type":"Punctuation","value":"("},
   130  {"type":"Name","value":"num_leds"},
   131  {"type":"Punctuation","value":","},
   132  {"type":"Text","value":" "},
   133  {"type":"Name","value":"pixel_pin"},
   134  {"type":"Punctuation","value":","},
   135  {"type":"Text","value":" "},
   136  {"type":"Name","value":"NEO_GRB"},
   137  {"type":"Text","value":" "},
   138  {"type":"Operator","value":"+"},
   139  {"type":"Text","value":" "},
   140  {"type":"Name","value":"NEO_KHZ800"},
   141  {"type":"Punctuation","value":");"},
   142  {"type":"Text","value":"\n"},
   143  {"type":"KeywordType","value":"int"},
   144  {"type":"Text","value":" "},
   145  {"type":"Name","value":"red"},
   146  {"type":"Text","value":" "},
   147  {"type":"Operator","value":"="},
   148  {"type":"Text","value":" "},
   149  {"type":"LiteralNumberInteger","value":"0"},
   150  {"type":"Punctuation","value":";"},
   151  {"type":"Text","value":"\n"},
   152  {"type":"KeywordType","value":"int"},
   153  {"type":"Text","value":" "},
   154  {"type":"Name","value":"green"},
   155  {"type":"Text","value":" "},
   156  {"type":"Operator","value":"="},
   157  {"type":"Text","value":" "},
   158  {"type":"LiteralNumberInteger","value":"0"},
   159  {"type":"Punctuation","value":";"},
   160  {"type":"Text","value":"\n"},
   161  {"type":"KeywordType","value":"int"},
   162  {"type":"Text","value":" "},
   163  {"type":"Name","value":"blue"},
   164  {"type":"Text","value":" "},
   165  {"type":"Operator","value":"="},
   166  {"type":"Text","value":" "},
   167  {"type":"LiteralNumberInteger","value":"0"},
   168  {"type":"Punctuation","value":";"},
   169  {"type":"Text","value":"\n\n"},
   170  {"type":"KeywordType","value":"void"},
   171  {"type":"Text","value":" "},
   172  {"type":"NameFunction","value":"setup"},
   173  {"type":"Punctuation","value":"()"},
   174  {"type":"Text","value":" "},
   175  {"type":"Punctuation","value":"{"},
   176  {"type":"Text","value":"\n  "},
   177  {"type":"NameClass","value":"Serial"},
   178  {"type":"Punctuation","value":"."},
   179  {"type":"NameFunction","value":"begin"},
   180  {"type":"Punctuation","value":"("},
   181  {"type":"LiteralNumberInteger","value":"9600"},
   182  {"type":"Punctuation","value":");"},
   183  {"type":"Text","value":"\n  "},
   184  {"type":"Name","value":"elbow_servo"},
   185  {"type":"Punctuation","value":"."},
   186  {"type":"NameFunction","value":"attach"},
   187  {"type":"Punctuation","value":"("},
   188  {"type":"LiteralNumberInteger","value":"9"},
   189  {"type":"Punctuation","value":");"},
   190  {"type":"Text","value":"  "},
   191  {"type":"CommentSingle","value":"// attaches the servo on pin 9 to the servo object\n"},
   192  {"type":"Text","value":"  "},
   193  {"type":"NameFunction","value":"pinMode"},
   194  {"type":"Punctuation","value":"("},
   195  {"type":"Name","value":"button_pin"},
   196  {"type":"Punctuation","value":","},
   197  {"type":"Text","value":" "},
   198  {"type":"KeywordConstant","value":"INPUT_PULLUP"},
   199  {"type":"Punctuation","value":");"},
   200  {"type":"Text","value":" "},
   201  {"type":"CommentSingle","value":"// create a button for the neopixels\n"},
   202  {"type":"Text","value":"  "},
   203  {"type":"Name","value":"pixel"},
   204  {"type":"Punctuation","value":"."},
   205  {"type":"NameFunction","value":"begin"},
   206  {"type":"Punctuation","value":"();"},
   207  {"type":"Text","value":"\n"},
   208  {"type":"Punctuation","value":"}"},
   209  {"type":"Text","value":"\n\n"},
   210  {"type":"KeywordType","value":"void"},
   211  {"type":"Text","value":" "},
   212  {"type":"NameFunction","value":"loop"},
   213  {"type":"Punctuation","value":"()"},
   214  {"type":"Text","value":" "},
   215  {"type":"Punctuation","value":"{"},
   216  {"type":"Text","value":"\n  \n  "},
   217  {"type":"CommentSingle","value":"//// Read signal from variable resistor or potentiometer\n"},
   218  {"type":"Text","value":"  "},
   219  {"type":"CommentSingle","value":"//\n"},
   220  {"type":"Text","value":"  "},
   221  {"type":"Name","value":"val"},
   222  {"type":"Text","value":" "},
   223  {"type":"Operator","value":"="},
   224  {"type":"Text","value":" "},
   225  {"type":"NameFunction","value":"analogRead"},
   226  {"type":"Punctuation","value":"("},
   227  {"type":"Name","value":"potpin"},
   228  {"type":"Punctuation","value":");"},
   229  {"type":"Text","value":"            "},
   230  {"type":"CommentSingle","value":"// reads the value of the potentiometer (value between 0 and 1023)\n"},
   231  {"type":"Text","value":"  "},
   232  {"type":"KeywordType","value":"int"},
   233  {"type":"Text","value":" "},
   234  {"type":"Name","value":"v"},
   235  {"type":"Text","value":" "},
   236  {"type":"Operator","value":"="},
   237  {"type":"Text","value":" "},
   238  {"type":"NameFunction","value":"map"},
   239  {"type":"Punctuation","value":"("},
   240  {"type":"Name","value":"val"},
   241  {"type":"Punctuation","value":","},
   242  {"type":"Text","value":" "},
   243  {"type":"LiteralNumberInteger","value":"0"},
   244  {"type":"Punctuation","value":","},
   245  {"type":"Text","value":" "},
   246  {"type":"LiteralNumberInteger","value":"1023"},
   247  {"type":"Punctuation","value":","},
   248  {"type":"Text","value":" "},
   249  {"type":"LiteralNumberInteger","value":"0"},
   250  {"type":"Punctuation","value":","},
   251  {"type":"Text","value":" "},
   252  {"type":"LiteralNumberInteger","value":"180"},
   253  {"type":"Punctuation","value":");"},
   254  {"type":"Text","value":"     "},
   255  {"type":"CommentSingle","value":"// scale it to use it with the servo (value between 0 and 180)\n"},
   256  {"type":"Text","value":"  "},
   257  {"type":"Name","value":"elbow_servo"},
   258  {"type":"Punctuation","value":"."},
   259  {"type":"NameFunction","value":"write"},
   260  {"type":"Punctuation","value":"("},
   261  {"type":"Name","value":"v"},
   262  {"type":"Punctuation","value":");"},
   263  {"type":"Text","value":"  \n  "},
   264  {"type":"NameFunction","value":"delay"},
   265  {"type":"Punctuation","value":"("},
   266  {"type":"LiteralNumberInteger","value":"15"},
   267  {"type":"Punctuation","value":");"},
   268  {"type":"Text","value":"                           "},
   269  {"type":"CommentSingle","value":"// waits for the servo to get there\n"},
   270  {"type":"Text","value":"\n\n  "},
   271  {"type":"CommentSingle","value":"//// Toggle between states using a button\n"},
   272  {"type":"Text","value":"  "},
   273  {"type":"CommentSingle","value":"////\n"},
   274  {"type":"Text","value":"  "},
   275  {"type":"KeywordType","value":"int"},
   276  {"type":"Text","value":" "},
   277  {"type":"Name","value":"b"},
   278  {"type":"Text","value":" "},
   279  {"type":"Operator","value":"="},
   280  {"type":"Text","value":" "},
   281  {"type":"NameFunction","value":"digitalRead"},
   282  {"type":"Punctuation","value":"("},
   283  {"type":"Name","value":"button_pin"},
   284  {"type":"Punctuation","value":");"},
   285  {"type":"Text","value":" "},
   286  {"type":"CommentSingle","value":"// read button\n"},
   287  {"type":"Text","value":"  "},
   288  {"type":"CommentSingle","value":"// \"debounce\" the button signal\n"},
   289  {"type":"Text","value":"  "},
   290  {"type":"Keyword","value":"if"},
   291  {"type":"Text","value":" "},
   292  {"type":"Punctuation","value":"("},
   293  {"type":"Name","value":"b"},
   294  {"type":"Text","value":" "},
   295  {"type":"Operator","value":"!="},
   296  {"type":"Text","value":" "},
   297  {"type":"Name","value":"lastButtonState"},
   298  {"type":"Punctuation","value":")"},
   299  {"type":"Text","value":" "},
   300  {"type":"Name","value":"lastDebounceTime"},
   301  {"type":"Text","value":" "},
   302  {"type":"Operator","value":"="},
   303  {"type":"Text","value":" "},
   304  {"type":"NameFunction","value":"millis"},
   305  {"type":"Punctuation","value":"();"},
   306  {"type":"Text","value":"\n  "},
   307  {"type":"Keyword","value":"if"},
   308  {"type":"Text","value":" "},
   309  {"type":"Punctuation","value":"(("},
   310  {"type":"NameFunction","value":"millis"},
   311  {"type":"Punctuation","value":"()"},
   312  {"type":"Text","value":" "},
   313  {"type":"Operator","value":"-"},
   314  {"type":"Text","value":" "},
   315  {"type":"Name","value":"lastDebounceTime"},
   316  {"type":"Punctuation","value":")"},
   317  {"type":"Text","value":" "},
   318  {"type":"Operator","value":"\u003e"},
   319  {"type":"Text","value":" "},
   320  {"type":"Name","value":"debounceDelay"},
   321  {"type":"Punctuation","value":")"},
   322  {"type":"Text","value":" "},
   323  {"type":"Punctuation","value":"{"},
   324  {"type":"Text","value":"\n    "},
   325  {"type":"Keyword","value":"if"},
   326  {"type":"Text","value":" "},
   327  {"type":"Punctuation","value":"("},
   328  {"type":"Name","value":"b"},
   329  {"type":"Text","value":" "},
   330  {"type":"Operator","value":"!="},
   331  {"type":"Text","value":" "},
   332  {"type":"Name","value":"buttonState"},
   333  {"type":"Punctuation","value":")"},
   334  {"type":"Text","value":" "},
   335  {"type":"Punctuation","value":"{"},
   336  {"type":"Text","value":"\n      "},
   337  {"type":"Name","value":"buttonState"},
   338  {"type":"Text","value":" "},
   339  {"type":"Operator","value":"="},
   340  {"type":"Text","value":" "},
   341  {"type":"Name","value":"b"},
   342  {"type":"Punctuation","value":";"},
   343  {"type":"Text","value":"\n      "},
   344  {"type":"Keyword","value":"if"},
   345  {"type":"Text","value":" "},
   346  {"type":"Punctuation","value":"("},
   347  {"type":"Name","value":"buttonState"},
   348  {"type":"Text","value":" "},
   349  {"type":"Operator","value":"=="},
   350  {"type":"Text","value":" "},
   351  {"type":"KeywordConstant","value":"LOW"},
   352  {"type":"Punctuation","value":")"},
   353  {"type":"Text","value":" "},
   354  {"type":"Punctuation","value":"{"},
   355  {"type":"Text","value":"\n        "},
   356  {"type":"Name","value":"led_control_state"},
   357  {"type":"Operator","value":"++"},
   358  {"type":"Punctuation","value":";"},
   359  {"type":"Text","value":"\n        "},
   360  {"type":"Keyword","value":"if"},
   361  {"type":"Text","value":" "},
   362  {"type":"Punctuation","value":"("},
   363  {"type":"Name","value":"led_control_state"},
   364  {"type":"Text","value":" "},
   365  {"type":"Operator","value":"\u003e"},
   366  {"type":"Text","value":" "},
   367  {"type":"LiteralNumberInteger","value":"3"},
   368  {"type":"Punctuation","value":")"},
   369  {"type":"Text","value":" "},
   370  {"type":"Name","value":"led_control_state"},
   371  {"type":"Text","value":" "},
   372  {"type":"Operator","value":"="},
   373  {"type":"Text","value":" "},
   374  {"type":"LiteralNumberInteger","value":"0"},
   375  {"type":"Punctuation","value":";"},
   376  {"type":"Text","value":"\n      "},
   377  {"type":"Punctuation","value":"}"},
   378  {"type":"Text","value":"\n    "},
   379  {"type":"Punctuation","value":"}"},
   380  {"type":"Text","value":"\n  "},
   381  {"type":"Punctuation","value":"}"},
   382  {"type":"Text","value":"\n  "},
   383  {"type":"Name","value":"lastButtonState"},
   384  {"type":"Text","value":" "},
   385  {"type":"Operator","value":"="},
   386  {"type":"Text","value":" "},
   387  {"type":"Name","value":"b"},
   388  {"type":"Punctuation","value":";"},
   389  {"type":"Text","value":"\n\n  "},
   390  {"type":"Keyword","value":"switch"},
   391  {"type":"Punctuation","value":"("},
   392  {"type":"Name","value":"led_control_state"},
   393  {"type":"Punctuation","value":")"},
   394  {"type":"Text","value":" "},
   395  {"type":"Punctuation","value":"{"},
   396  {"type":"Text","value":"\n    "},
   397  {"type":"Keyword","value":"case"},
   398  {"type":"Text","value":" "},
   399  {"type":"LiteralNumberInteger","value":"0"},
   400  {"type":"Operator","value":":"},
   401  {"type":"Text","value":"\n      "},
   402  {"type":"Keyword","value":"break"},
   403  {"type":"Punctuation","value":";"},
   404  {"type":"Text","value":" \n    "},
   405  {"type":"Keyword","value":"case"},
   406  {"type":"Text","value":" "},
   407  {"type":"LiteralNumberInteger","value":"1"},
   408  {"type":"Operator","value":":"},
   409  {"type":"Text","value":"\n      "},
   410  {"type":"Name","value":"red"},
   411  {"type":"Text","value":" "},
   412  {"type":"Operator","value":"="},
   413  {"type":"Text","value":" "},
   414  {"type":"LiteralNumberInteger","value":"255"},
   415  {"type":"Punctuation","value":";"},
   416  {"type":"Text","value":"\n      "},
   417  {"type":"Name","value":"blue"},
   418  {"type":"Text","value":" "},
   419  {"type":"Operator","value":"="},
   420  {"type":"Text","value":" "},
   421  {"type":"LiteralNumberInteger","value":"255"},
   422  {"type":"Punctuation","value":";"},
   423  {"type":"Text","value":"\n      "},
   424  {"type":"Name","value":"green"},
   425  {"type":"Text","value":" "},
   426  {"type":"Operator","value":"="},
   427  {"type":"Text","value":" "},
   428  {"type":"LiteralNumberInteger","value":"0"},
   429  {"type":"Punctuation","value":";"},
   430  {"type":"Text","value":"\n      "},
   431  {"type":"Keyword","value":"break"},
   432  {"type":"Punctuation","value":";"},
   433  {"type":"Text","value":"\n    "},
   434  {"type":"Keyword","value":"case"},
   435  {"type":"Text","value":" "},
   436  {"type":"LiteralNumberInteger","value":"2"},
   437  {"type":"Operator","value":":"},
   438  {"type":"Text","value":"\n      "},
   439  {"type":"Name","value":"red"},
   440  {"type":"Text","value":" "},
   441  {"type":"Operator","value":"="},
   442  {"type":"Text","value":" "},
   443  {"type":"LiteralNumberInteger","value":"0"},
   444  {"type":"Punctuation","value":";"},
   445  {"type":"Text","value":"\n      "},
   446  {"type":"Name","value":"blue"},
   447  {"type":"Text","value":" "},
   448  {"type":"Operator","value":"="},
   449  {"type":"Text","value":" "},
   450  {"type":"LiteralNumberInteger","value":"255"},
   451  {"type":"Punctuation","value":";"},
   452  {"type":"Text","value":"\n      "},
   453  {"type":"Name","value":"green"},
   454  {"type":"Text","value":" "},
   455  {"type":"Operator","value":"="},
   456  {"type":"Text","value":" "},
   457  {"type":"LiteralNumberInteger","value":"255"},
   458  {"type":"Punctuation","value":";"},
   459  {"type":"Text","value":"\n      "},
   460  {"type":"Keyword","value":"break"},
   461  {"type":"Punctuation","value":";"},
   462  {"type":"Text","value":"\n    "},
   463  {"type":"Keyword","value":"case"},
   464  {"type":"Text","value":" "},
   465  {"type":"LiteralNumberInteger","value":"3"},
   466  {"type":"Operator","value":":"},
   467  {"type":"Text","value":"\n      "},
   468  {"type":"Name","value":"red"},
   469  {"type":"Text","value":" "},
   470  {"type":"Operator","value":"="},
   471  {"type":"Text","value":" "},
   472  {"type":"LiteralNumberInteger","value":"255"},
   473  {"type":"Punctuation","value":";"},
   474  {"type":"Text","value":"\n      "},
   475  {"type":"Name","value":"blue"},
   476  {"type":"Text","value":" "},
   477  {"type":"Operator","value":"="},
   478  {"type":"Text","value":" "},
   479  {"type":"LiteralNumberInteger","value":"0"},
   480  {"type":"Punctuation","value":";"},
   481  {"type":"Text","value":"\n      "},
   482  {"type":"Name","value":"green"},
   483  {"type":"Text","value":" "},
   484  {"type":"Operator","value":"="},
   485  {"type":"Text","value":" "},
   486  {"type":"LiteralNumberInteger","value":"255"},
   487  {"type":"Punctuation","value":";"},
   488  {"type":"Text","value":"\n      "},
   489  {"type":"Keyword","value":"break"},
   490  {"type":"Punctuation","value":";"},
   491  {"type":"Text","value":"\n  "},
   492  {"type":"Punctuation","value":"}"},
   493  {"type":"Text","value":"\n\n  "},
   494  {"type":"NameClass","value":"Serial"},
   495  {"type":"Punctuation","value":"."},
   496  {"type":"NameFunction","value":"println"},
   497  {"type":"Punctuation","value":"("},
   498  {"type":"Name","value":"led_control_state"},
   499  {"type":"Punctuation","value":");"},
   500  {"type":"Text","value":"\n  "},
   501  {"type":"CommentSingle","value":"// set color ofpixels\n"},
   502  {"type":"Text","value":"  "},
   503  {"type":"Keyword","value":"for"},
   504  {"type":"Punctuation","value":"("},
   505  {"type":"KeywordType","value":"int"},
   506  {"type":"Text","value":" "},
   507  {"type":"Name","value":"i"},
   508  {"type":"Operator","value":"="},
   509  {"type":"LiteralNumberInteger","value":"0"},
   510  {"type":"Punctuation","value":";"},
   511  {"type":"Name","value":"i"},
   512  {"type":"Operator","value":"\u003c"},
   513  {"type":"Name","value":"num_leds"},
   514  {"type":"Punctuation","value":";"},
   515  {"type":"Name","value":"i"},
   516  {"type":"Operator","value":"++"},
   517  {"type":"Punctuation","value":"){"},
   518  {"type":"Text","value":"\n    "},
   519  {"type":"Name","value":"pixel"},
   520  {"type":"Punctuation","value":"."},
   521  {"type":"Name","value":"setPixelColor"},
   522  {"type":"Punctuation","value":"("},
   523  {"type":"Name","value":"i"},
   524  {"type":"Punctuation","value":","},
   525  {"type":"Name","value":"red"},
   526  {"type":"Punctuation","value":","},
   527  {"type":"Name","value":"green"},
   528  {"type":"Punctuation","value":","},
   529  {"type":"Name","value":"blue"},
   530  {"type":"Punctuation","value":");"},
   531  {"type":"Text","value":"\n    "},
   532  {"type":"Name","value":"pixel"},
   533  {"type":"Punctuation","value":"."},
   534  {"type":"Name","value":"show"},
   535  {"type":"Punctuation","value":"();"},
   536  {"type":"Text","value":" \n    "},
   537  {"type":"NameFunction","value":"delay"},
   538  {"type":"Punctuation","value":"("},
   539  {"type":"LiteralNumberInteger","value":"15"},
   540  {"type":"Punctuation","value":");"},
   541  {"type":"Text","value":" \n  "},
   542  {"type":"Punctuation","value":"}"},
   543  {"type":"Text","value":"\n"},
   544  {"type":"Punctuation","value":"}"}
   545]

View as plain text