Category:Amazing Hopper: Difference between revisions

m
Line 862:
La siguiente es la estructura de un típico programa HOPPER:
 
[ #include <archivo.hh> | [path/]archivo.hh ]
[ #define DEFNAME cuerpo-de-define [\
continuación ] ]
[ #defn DEFNAME cuerpo-de-define-con-TAGS-macro-programación [\
continuación ] ]
[ #proto NOMBRE_PSEUDO_FUNCION[(arguentos)] ]
[ #context | #context-free <lista-de-contextos> ]
[ #synon | #synonymous < DEFNAME | CONTEXTO > <lista-de-sinónimos> ]
 
main:
[ #define DEFNAME cuerpo-de-define [\
continuación ] ]
 
[.stack SIZE-STACK ]
[ #defn DEFNAME cuerpo-de-define-con-TAGS-macro-programación [\
[.ctrl]
continuación ] ]
[ #hl | #fx | #compute | #high-level < { <instrucciones-alto-nivel>
[ #proto NOMBRE_PSEUDO_FUNCION[(arguentos)] ]
 
[ #context | #context-free <lista-de-contextos> ]
 
[ #synon | #synonymous < DEFNAME | CONTEXTO > <lista-de-sinónimos> ]
 
main:
 
[.stack SIZE-STACK ]
[.ctrl]
[ #hl | #fx | #compute | #high-level < { <instrucciones-alto-nivel>
} > | < ( línea-alto-nivel ) > ]
...instrucciones-HOPPER...
 
[ <label>:
instrucciones-HOPPER ]
 
[ #define DEFNAME cuerpo-de-define [\
continuación ] ]
Line 893 ⟶ 886:
continuación ] ]
 
{<valor-retorno>}return
 
[.locals]
[ <contexto> :
instrucciones-HOPPER
[instrucciones-alto-nivel]
back ]
 
 
OBSERVACIONES. los comandos de macro-procesamiento #DEFINE y #DEFN pueden ser usados en cualquier parte del programa.
 
 
== ETIQUETAS, CONTEXTOS Y PSEUDOFUNCIONES ==
545

edits