Not much is happening with Atom at the moment while I work on a Basic/C to Atom Assembler translator, called BAX. So far I have the following code working:
'This is a test file for the bax translator'
'This comment
spans two lines'
dim %a = 4
dim %b = 5 dim %c = 10
dim %d, %e, %f, %g
dim %h, %i, %str = "This is a string"
'assignments'
%d = 52 %e = 24
'assigments with math'
%f = 12 + 34.5 * (6 / 4)
'assignments with math and vars'
%g = %d+%e*(5+%a)
%h = "This is a string value."
%i = %h
print ("a: "; %a, "b:"; %b, "c: "; %c, "d: "; %d, "e: "; %e,
"f: "; %f, "g: "; %g, "h: "; %h, "i: "; %i, "A string")
gosub label1
goto label2
print("You won't see this.")
:label2
print("This is the end.")
end
:label1
print("In label1")
return
As you can see, it has a Basic/C flavor to the syntax. I am currently trying to get Boolean expressions working so I can implement control structures. Once the control structures are in place, I will add in the necessary AA commands.