|
192 | 192 | {"type":"Text","value":"\n"}, |
193 | 193 | {"type":"Punctuation","value":"}"}, |
194 | 194 | {"type":"Text","value":"\n\n"}, |
195 | | - {"type":"KeywordDeclaration","value":"var "}, |
| 195 | + {"type":"KeywordDeclaration","value":"var"}, |
| 196 | + {"type":"Text","value":" "}, |
196 | 197 | {"type":"NameVariable","value":"imAVariable"}, |
197 | 198 | {"type":"Text","value":" "}, |
198 | 199 | {"type":"Operator","value":"="}, |
199 | 200 | {"type":"Text","value":" "}, |
200 | 201 | {"type":"LiteralStringDouble","value":"\"here is my value\""}, |
201 | 202 | {"type":"Punctuation","value":";"}, |
202 | 203 | {"type":"Text","value":"\n"}, |
203 | | - {"type":"KeywordDeclaration","value":"var "}, |
| 204 | + {"type":"KeywordDeclaration","value":"var"}, |
| 205 | + {"type":"Text","value":" "}, |
204 | 206 | {"type":"NameVariable","value":"iAmNil"}, |
205 | 207 | {"type":"Punctuation","value":";"}, |
206 | 208 | {"type":"Text","value":"\n\n"}, |
207 | | - {"type":"KeywordDeclaration","value":"var "}, |
| 209 | + {"type":"KeywordDeclaration","value":"var"}, |
| 210 | + {"type":"Text","value":" "}, |
208 | 211 | {"type":"NameVariable","value":"breakfast"}, |
209 | 212 | {"type":"Text","value":" "}, |
210 | 213 | {"type":"Operator","value":"="}, |
|
258 | 261 | {"type":"Text","value":"\n"}, |
259 | 262 | {"type":"Punctuation","value":"}"}, |
260 | 263 | {"type":"Text","value":"\n\n"}, |
261 | | - {"type":"KeywordDeclaration","value":"var "}, |
| 264 | + {"type":"KeywordDeclaration","value":"var"}, |
| 265 | + {"type":"Text","value":" "}, |
262 | 266 | {"type":"NameVariable","value":"a"}, |
263 | 267 | {"type":"Text","value":" "}, |
264 | 268 | {"type":"Operator","value":"="}, |
|
299 | 303 | {"type":"Keyword","value":"for"}, |
300 | 304 | {"type":"Text","value":" "}, |
301 | 305 | {"type":"Punctuation","value":"("}, |
302 | | - {"type":"KeywordDeclaration","value":"var "}, |
| 306 | + {"type":"KeywordDeclaration","value":"var"}, |
| 307 | + {"type":"Text","value":" "}, |
303 | 308 | {"type":"NameVariable","value":"a"}, |
304 | 309 | {"type":"Text","value":" "}, |
305 | 310 | {"type":"Operator","value":"="}, |
|
331 | 336 | {"type":"Text","value":" "}, |
332 | 337 | {"type":"NameVariable","value":"a"}, |
333 | 338 | {"type":"Punctuation","value":";"}, |
| 339 | + {"type":"Text","value":"\n "}, |
| 340 | + {"type":"Keyword","value":"continue"}, |
| 341 | + {"type":"Punctuation","value":";"}, |
334 | 342 | {"type":"Text","value":"\n"}, |
335 | 343 | {"type":"Punctuation","value":"}"}, |
336 | 344 | {"type":"Text","value":"\n\n"}, |
|
348 | 356 | {"type":"NameVariable","value":"makeBreakfast"}, |
349 | 357 | {"type":"Punctuation","value":"();"}, |
350 | 358 | {"type":"Text","value":"\n\n"}, |
351 | | - {"type":"KeywordDeclaration","value":"fun "}, |
| 359 | + {"type":"KeywordDeclaration","value":"fun"}, |
| 360 | + {"type":"Text","value":" "}, |
352 | 361 | {"type":"NameFunction","value":"addPair"}, |
353 | 362 | {"type":"Punctuation","value":"("}, |
354 | 363 | {"type":"NameVariable","value":"a"}, |
|
370 | 379 | {"type":"Text","value":"\n"}, |
371 | 380 | {"type":"Punctuation","value":"}"}, |
372 | 381 | {"type":"Text","value":"\n"}, |
373 | | - {"type":"KeywordDeclaration","value":"fun "}, |
| 382 | + {"type":"KeywordDeclaration","value":"fun"}, |
| 383 | + {"type":"Text","value":" "}, |
374 | 384 | {"type":"NameFunction","value":"identity"}, |
375 | 385 | {"type":"Punctuation","value":"("}, |
376 | 386 | {"type":"NameVariable","value":"a"}, |
|
399 | 409 | {"type":"Text","value":" "}, |
400 | 410 | {"type":"CommentSingle","value":"// Prints \"3\".\n"}, |
401 | 411 | {"type":"Text","value":"\n"}, |
402 | | - {"type":"KeywordDeclaration","value":"fun "}, |
| 412 | + {"type":"KeywordDeclaration","value":"fun"}, |
| 413 | + {"type":"Text","value":" "}, |
403 | 414 | {"type":"NameFunction","value":"returnFunction"}, |
404 | 415 | {"type":"Punctuation","value":"()"}, |
405 | 416 | {"type":"Text","value":" "}, |
406 | 417 | {"type":"Punctuation","value":"{"}, |
407 | 418 | {"type":"Text","value":"\n "}, |
408 | | - {"type":"KeywordDeclaration","value":"var "}, |
| 419 | + {"type":"KeywordDeclaration","value":"var"}, |
| 420 | + {"type":"Text","value":" "}, |
409 | 421 | {"type":"NameVariable","value":"outside"}, |
410 | 422 | {"type":"Text","value":" "}, |
411 | 423 | {"type":"Operator","value":"="}, |
412 | 424 | {"type":"Text","value":" "}, |
413 | 425 | {"type":"LiteralStringDouble","value":"\"outside\""}, |
414 | 426 | {"type":"Punctuation","value":";"}, |
415 | 427 | {"type":"Text","value":"\n "}, |
416 | | - {"type":"KeywordDeclaration","value":"fun "}, |
| 428 | + {"type":"KeywordDeclaration","value":"fun"}, |
| 429 | + {"type":"Text","value":" "}, |
417 | 430 | {"type":"NameFunction","value":"inner"}, |
418 | 431 | {"type":"Punctuation","value":"()"}, |
419 | 432 | {"type":"Text","value":" "}, |
|
433 | 446 | {"type":"Text","value":"\n"}, |
434 | 447 | {"type":"Punctuation","value":"}"}, |
435 | 448 | {"type":"Text","value":"\n"}, |
436 | | - {"type":"KeywordDeclaration","value":"var "}, |
| 449 | + {"type":"KeywordDeclaration","value":"var"}, |
| 450 | + {"type":"Text","value":" "}, |
437 | 451 | {"type":"NameVariable","value":"fn"}, |
438 | 452 | {"type":"Text","value":" "}, |
439 | 453 | {"type":"Operator","value":"="}, |
|
444 | 458 | {"type":"NameVariable","value":"fn"}, |
445 | 459 | {"type":"Punctuation","value":"();"}, |
446 | 460 | {"type":"Text","value":"\n\n"}, |
447 | | - {"type":"KeywordDeclaration","value":"class "}, |
| 461 | + {"type":"KeywordDeclaration","value":"class"}, |
| 462 | + {"type":"Text","value":" "}, |
448 | 463 | {"type":"NameClass","value":"Breakfast"}, |
449 | 464 | {"type":"Text","value":" "}, |
450 | 465 | {"type":"Punctuation","value":"{"}, |
|
486 | 501 | {"type":"Punctuation","value":"}"}, |
487 | 502 | {"type":"Text","value":"\n\n"}, |
488 | 503 | {"type":"CommentSingle","value":"// Store it in variables.\n"}, |
489 | | - {"type":"KeywordDeclaration","value":"var "}, |
| 504 | + {"type":"KeywordDeclaration","value":"var"}, |
| 505 | + {"type":"Text","value":" "}, |
490 | 506 | {"type":"NameVariable","value":"someVariable"}, |
491 | 507 | {"type":"Text","value":" "}, |
492 | 508 | {"type":"Operator","value":"="}, |
|
518 | 534 | {"type":"LiteralStringDouble","value":"\"sourdough\""}, |
519 | 535 | {"type":"Punctuation","value":";"}, |
520 | 536 | {"type":"Text","value":"\n\n"}, |
521 | | - {"type":"KeywordDeclaration","value":"class "}, |
| 537 | + {"type":"KeywordDeclaration","value":"class"}, |
| 538 | + {"type":"Text","value":" "}, |
522 | 539 | {"type":"NameClass","value":"Breakfast"}, |
523 | 540 | {"type":"Text","value":" "}, |
524 | 541 | {"type":"Punctuation","value":"{"}, |
|
556 | 573 | {"type":"CommentSingle","value":"// ...\n"}, |
557 | 574 | {"type":"Punctuation","value":"}"}, |
558 | 575 | {"type":"Text","value":"\n"}, |
559 | | - {"type":"KeywordDeclaration","value":"var "}, |
| 576 | + {"type":"KeywordDeclaration","value":"var"}, |
| 577 | + {"type":"Text","value":" "}, |
560 | 578 | {"type":"NameVariable","value":"baconAndToast"}, |
561 | 579 | {"type":"Text","value":" "}, |
562 | 580 | {"type":"Operator","value":"="}, |
|
578 | 596 | {"type":"Text","value":"\n"}, |
579 | 597 | {"type":"CommentSingle","value":"// \"Enjoy your bacon and toast, Dear Reader.\"\n"}, |
580 | 598 | {"type":"Text","value":"\n"}, |
581 | | - {"type":"KeywordDeclaration","value":"class "}, |
| 599 | + {"type":"KeywordDeclaration","value":"class"}, |
| 600 | + {"type":"Text","value":" "}, |
582 | 601 | {"type":"NameClass","value":"Brunch"}, |
583 | 602 | {"type":"Text","value":" "}, |
584 | 603 | {"type":"Operator","value":"\u003c"}, |
|
634 | 653 | {"type":"Punctuation","value":"}"}, |
635 | 654 | {"type":"Text","value":"\n"}, |
636 | 655 | {"type":"Punctuation","value":"}"}, |
| 656 | + {"type":"Text","value":"\n\n"}, |
| 657 | + {"type":"Keyword","value":"switch"}, |
| 658 | + {"type":"Text","value":" "}, |
| 659 | + {"type":"Punctuation","value":"("}, |
| 660 | + {"type":"NameVariable","value":"a"}, |
| 661 | + {"type":"Punctuation","value":")"}, |
| 662 | + {"type":"Text","value":" "}, |
| 663 | + {"type":"Punctuation","value":"{"}, |
| 664 | + {"type":"Text","value":"\n "}, |
| 665 | + {"type":"Keyword","value":"case"}, |
| 666 | + {"type":"Text","value":" "}, |
| 667 | + {"type":"LiteralNumberInteger","value":"1"}, |
| 668 | + {"type":"Punctuation","value":":"}, |
| 669 | + {"type":"Text","value":"\n "}, |
| 670 | + {"type":"Keyword","value":"print"}, |
| 671 | + {"type":"Punctuation","value":"("}, |
| 672 | + {"type":"LiteralStringDouble","value":"\"1\""}, |
| 673 | + {"type":"Punctuation","value":");"}, |
| 674 | + {"type":"Text","value":"\n "}, |
| 675 | + {"type":"Keyword","value":"break"}, |
| 676 | + {"type":"Punctuation","value":";"}, |
| 677 | + {"type":"Text","value":"\n "}, |
| 678 | + {"type":"Keyword","value":"case"}, |
| 679 | + {"type":"Text","value":" "}, |
| 680 | + {"type":"LiteralNumberInteger","value":"2"}, |
| 681 | + {"type":"Punctuation","value":":"}, |
| 682 | + {"type":"Text","value":"\n "}, |
| 683 | + {"type":"Keyword","value":"print"}, |
| 684 | + {"type":"Punctuation","value":"("}, |
| 685 | + {"type":"LiteralStringDouble","value":"\"1\""}, |
| 686 | + {"type":"Punctuation","value":");"}, |
| 687 | + {"type":"Text","value":"\n "}, |
| 688 | + {"type":"Keyword","value":"break"}, |
| 689 | + {"type":"Punctuation","value":";"}, |
| 690 | + {"type":"Text","value":"\n "}, |
| 691 | + {"type":"Keyword","value":"default"}, |
| 692 | + {"type":"Punctuation","value":":"}, |
| 693 | + {"type":"Text","value":"\n "}, |
| 694 | + {"type":"Keyword","value":"print"}, |
| 695 | + {"type":"Punctuation","value":"("}, |
| 696 | + {"type":"LiteralStringDouble","value":"\"default\""}, |
| 697 | + {"type":"Punctuation","value":");"}, |
| 698 | + {"type":"Text","value":"\n "}, |
| 699 | + {"type":"Keyword","value":"break"}, |
| 700 | + {"type":"Punctuation","value":";"}, |
| 701 | + {"type":"Text","value":"\n"}, |
| 702 | + {"type":"Punctuation","value":"}"}, |
637 | 703 | {"type":"Text","value":"\n"} |
638 | 704 | ] |
0 commit comments