[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 1: Line 1:
==Syntax==
==Syntax==
===Files===
===Files===
  file:
  ''file'':
     heading body_opt
     heading body_opt



Revision as of 18:05, 11 May 2022

Syntax

Files

file:
    heading body_opt
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