Skip to content

Instantly share code, notes, and snippets.

@coolov
Last active April 28, 2020 01:23
Show Gist options
  • Save coolov/889e2d420780e1b196b151960377c450 to your computer and use it in GitHub Desktop.
Save coolov/889e2d420780e1b196b151960377c450 to your computer and use it in GitHub Desktop.

tokens

there are 5 types: identifier, keyword, punctuation, literal, or operator

  • A keyword is a word that is reserved because the word has a special meaning, for example: class, enum, function.
  • An identifier is a symbol which names a language entitiy, for example a variable, type, label, subroutine, or package
  • Punctuation (, ), {, }, [, ], ., ,, :, ;, =, @, #, &
  • A literal is the source code representation of a value of a type, such as a number or string
  • An operator is a symbol that tell the compiler to perform specific mathematical or logical manipulations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment