Skip to content

Instantly share code, notes, and snippets.

@Sleepful
Created November 13, 2017 03:20
Show Gist options
  • Save Sleepful/ab994cf7fa3beef2366cccc82d7fbe30 to your computer and use it in GitHub Desktop.
Save Sleepful/ab994cf7fa3beef2366cccc82d7fbe30 to your computer and use it in GitHub Desktop.
push() //no recibe nada?
codegen_logical() //supongo que hace el asm apartir del output?
codegen_algebric() // ?
int string_to_num(char*) // devuelve 1 o 0
codegen_assign() // ?
// de aqui en adelante me parece que son
// los ganchos que generan el codigo intermedio?
if_label1() // ?
if_label2() // ?
if_label3() // ?
while_start() // ?
while_rep() // ?
while_end() // ?
switch_start()
switch_case()
switch_default()
switch_break()
switch_nobreak()
switch_end()
check() // gancho para verificar si la variable esta definida?
setType() // ni idea, solo tiene un scrpy(type,yytext)
STMT_DECLARE() //gacho que verifica si una variable ya ha sido declara?
intermediatecode() // supongo que genera el codigo intermedio pero no entiendo por que tendria su propia funcion, pense que los ganchos hacian eso conforme se van llamando
inicio_codigo() // supongo que genera el inicio del asm
inicio_codigo() // supongo que general el final del asm
generarVariables() // ?? ni idea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment