On Apr 15, 5:31 pm, funlw65 <[email protected]> wrote:
> In my (bigger than others) ignorance, a token can have his own list of
> sub-tokens?
>
> Vasi(funlw65)
>
something like that.
IMO the "JAL" proper and the "PRAGMA" are two separate languages, I
would have preferred to see a separate fuses section with only the
"fuse" pragmas, renamed FUSE or CPU_CONFIG" and NO pragmas in JAL.
"inline" ought to be an option keyword between function or procedure
and the identifier.
Really you need to more understand and document JAL grammer before
rushing into Antlr.
Kyle needs to be more involved as essentially, currently as the sole
compiler writer he has decided what the grammer and syntax really is.
for example
pragma eeprom 0xF00000,256
creates a meta pseudo array _eeprom[256]
so in your code you can have count(_eeprom)
i.e.
if defined(_eeprom) == true then
function EepromIntCount() return dword is
pragma inline
return(COUNT(_eeprom))
end function
else
const dword SIMULATED_EEPROM_SIZE = 1024 -- used to simulate eeprom
in 18xxjxx Flash program memory
function EepromIntCount() return dword is
pragma inline
return (SIMULATED_EEPROM_SIZE)
end function
end
We can't "come back to pragma later". It's very important.
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.