Instantly share code, notes, and snippets.

Embed
What would you like to do?
AFL dictionary for Julia
#
# AFL dictionary for Julia
# ------------------------
#
# Contains basic keywords, operators, and some syntax building blocks.
#
# Created by Tim Besard <tim.besard@gmail.com>
#
## keywords
# initial reserved words
"begin"
"while"
"if"
"for"
"try"
"return"
"break"
"continue"
"function"
"macro"
"quote"
"let"
"local"
"global"
"const"
"do"
"struct"
"module"
"baremodule"
"using"
"import"
"export"
# reserved words
"end"
"else"
"elseif"
"catch"
"finally"
"true"
"false"
# non-standalone
"mutable"
"primitive"
"abstract"
# macro's
"@generated"
"@inline"
"@noinline"
"@nospecialize"
## operators
".'"
"'"
"..."
# assignment
"="
"+="
"-="
"*="
"/="
"//="
"\\\\="
"^="
"%="
"<<="
">>="
">>>="
"|="
"&="
":="
"~"
"$="
# pair
"=>"
# conditional
"?"
# arrows
"--"
"-->"
# or
"||"
# and
"&&"
# comparison
"<:"
">:"
"in"
"isa"
">"
"<"
">="
"<="
"=="
"==="
"!="
"!=="
# pipe
"<|"
"|>"
# colon
":"
".."
# plus
"$"
"+"
"-"
"|"
"++"
"*"
"/"
"%"
"&"
"\\\\"
# rational
"//"
# bitshift
"<<"
">>"
">>>"
# power
"^"
# decl
"::"
# dot
"."
## structure
# comments
"#"
"#= =#"
# variables
"a"
"(a)"
# values
" 1"
" 1."
" 1f0"
"big\"1\""
"[1]"
"[1 2]"
"[1;2]"
"(1,)"
":(1)"
"r\"a\""
"\"a\""
"'a'"
"'\\u1'"
"\"\\u1\""
"raw\"a\""
"NaN"
"Inf"
"nothing"
"undef"
"missing"
"a ? 1 : 2"
";"
"a()"
"a -> a"
"a() = a"
"function a() end"
"@a"
"macro a() end"
# structure
" "
"begin end"
"quote end"
"let end"
## modules
"Base"
"Core"
"Main"
## boot.jl
# key types
"Any"
"DataType"
"Vararg"
"NTuple"
"Tuple"
"Type"
"UnionAll"
"TypeVar"
"Union"
"Nothing"
"Cvoid"
"AbstractArray"
"DenseArray"
"NamedTuple"
# special objects
"Function"
"Method"
"Module"
"Symbol"
"Task"
"Array"
"UndefInitializer"
"WeakRef"
"VecElement"
# numeric types
"Number"
"Real"
"Integer"
"Bool"
"Ref"
"Ptr"
"AbstractFloat"
"Float16"
"Float32"
"Float64"
"Signed"
"Int"
"Int8"
"Int16"
"Int32"
"Int64"
"Int128"
"Unsigned"
"UInt"
"UInt8"
"UInt16"
"UInt32"
"UInt64"
"UInt128"
# string types
"AbstractChar"
"Char"
"AbstractString"
"String"
"IO"
# object model functions
"fieldtype"
"getfield"
"setfield!"
"getproperty"
"setproperty!"
"nfields"
"throw"
"tuple"
"isdefined"
"eval"
"ifelse"
# type reflection
"typeof"
"isa"
"typeassert"
# method reflection
"applicable"
"invoke"
## common stuff
"@nexprs"
"@ncall"
"@fastmath"
"convert"
"parse"
"serialize"
"size"
"length"
"iterate"
"getindex"
"setindex!"
"haskey"
"last"
"map"
"all"
"any"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment