flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Programming Language Design > Idea: FASMG in Spanish

Author
Thread Post new topic Reply to topic
codestar



Joined: 25 Dec 2014
Posts: 254
Idea: FASMG in Spanish

Code:
; include 'system.inc'

incluir 'sistema.inc'

definir formato db ; define format db

.codigo.datos    ; .code, .data

numerico abc   ; a=0, b=1, c=2

texto hola=\
  'Hola Mundo'     ; text hi='Hi, World'


Code:
macro nombre       ; macro name
  ; ...
final macro        ; end macro

partido a+b*cp   ; match a+b*c, p
  si x=0           ; if x=0 
    ; ...
  mas si x=1       ; else if x=1
    ; ... 
  final si         ; end if
final partido      ; end match

iterar nombrep   ; iterate/irp name, p
    ; ...
final iterar       ; end iterate/irp

funcion mensaje    ; function message
  decir 'Hola'     ;   say 'Hi'
finalf             ; endf


Code:
; class POINT = integer x, y

clase PUNTO = entero xy

espacio nombre     ; namespace name
  ; ...
final espacio      ; end namespace

Post 13 May 2015, 04:35
View user's profile Send private message Reply with quote
codestar



Joined: 25 Dec 2014
Posts: 254

Code:
; FRENCH TRANSLATION

macro nom
  ; ...
fin macro

match a+b*cp
  si x=0          ; if
    ; ...
  autre si x=1    ; else if
    ; ...
  fin si          ; end if
fin match

repeter nomp    ; iterate/irp
  ; ...
fin repeter

fonction message
  dire 'bonjour'  ; say 'hello'
finf

Post 13 May 2015, 05:23
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.