Skip to content

Instantly share code, notes, and snippets.

@Kuniwak
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kuniwak/c0ea66bba9b415e28d07 to your computer and use it in GitHub Desktop.
Save Kuniwak/c0ea66bba9b415e28d07 to your computer and use it in GitHub Desktop.
stmt left list op rest right type
let num = 0 identifier = number let
let dict[key] = 0 dot = number let
let list[0] = 99 subscript = number let
let list[1:2] = [99, 99] slice = list let
let str .= 'str_to_add' identifier .= number let
let $ENV = 'str_content' env = string let
let @@ = 'str_content' reg = string let
let [elem0, elem1] = [0, 1] [identifier, identifier] = list let
let [elem0, elem1 ; rest] = [0, 1, 2, 3] [identifier, identifier] = identifier list let
let a{'b'}c = 'abc' curlyname = string let
let [elem0, list[0:2]] = [100, [3,2,1]] [identifier, slice] = list let
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment