Skip to content

Instantly share code, notes, and snippets.

@NaelsonDouglas
Last active July 4, 2018 13:11
Show Gist options
  • Save NaelsonDouglas/cc113c70f4bf0ea3fb5180472a34fad9 to your computer and use it in GitHub Desktop.
Save NaelsonDouglas/cc113c70f4bf0ea3fb5180472a34fad9 to your computer and use it in GitHub Desktop.
oprp = [+|-]
oprm = [/|*]
oprln = [not]
oprlr_eq = [=|!=]
oprlr_eq = [<|>]
oprlr_lgt_e = [<=|>=]
comma = [,]
o_bracket = [\[]
c_bracket = [\]]
type_str = ".*"$
type_int = ^[\+|\-]?[0-9]+$
type_float = {type_int}[\.]{1}[0-9]*\$
id = ^[A-Z|a-z]+(\w)*
#TODO
Comandos, loops, chamadas de função
function reg_tostring(r::Regex)
regx = string(r)
return regx[3:length(regx)-1]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment