[Template fetch failed for http://spivey.oriel.ox.ac.uk/corner/Template:Sitenotice?action=render: HTTP 404]

Keiko assembly language: Difference between revisions

From Compilers
Jump to navigation Jump to search
Line 2: Line 2:
===Files===
===Files===
  ''file'':
  ''file'':
     heading body_opt
     ''heading'' ''body''{{opt}}


  heading:
  heading:

Revision as of 18:06, 11 May 2022

Syntax

Files

file:
    heading bodyopt
heading:
    module-dir imports_opt endhdr-dir
module-dir:
    MODULE ident checksum linecnt
imports:
    import-dir
    import-dir imports
import-dir:
    IMPORT ident checksum
endhdr-dir:
    ENDHDR     
body:
    phrase
    phrase body
phrase:
    directive
    procedure

Directives

directive:
    DEFINE
    WORD
    LONG
    FLOAT
    DOUBLE
    STRING
    GLOVAR
    PRIMDEF

Procedures

procedure:
    proc-directive body_opt end-directive
proc-directive:
    PROC ident 0 0 0
end-directive:
    END

LABEL CONST GLOBAL FCONST DCONST QCONST STKMAP LINE