Open GoogleCodeExporter opened 8 years ago
> The .lang file gets around this by defining the {{/}} comment first
JS regexps are analytic so this should work.
Original comment by mikesamuel@gmail.com
on 5 Feb 2013 at 12:09
In what format is spin.lang written?
Original comment by mikesamuel@gmail.com
on 5 Feb 2013 at 12:22
The .lang format is from the GtkSourceView project.
http://projects.gnome.org/gtksourceview/
Original comment by s...@srlmproductions.com
on 5 Feb 2013 at 5:40
Ah. I've put off writing adapters for things like that because of a lack of
clarity on OSS licenses.
You don't happen to have a language grammar handy? I can probably sort it out
from
http://code.google.com/p/anzhelka/source/browse/software/spin/src/main.spin and
the keyword list in spin.lang.
Original comment by mikesamuel@gmail.com
on 5 Feb 2013 at 2:19
Unfortunately, there isn't a formal language grammar. Spin is defined by what
the official Parallax compiler produces.
There is a good list of keywords and their breakdown in the Propeller manual
v1.2, page 36:
http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/Web-PropellerManual-v
1.2.pdf
The anzhelka main is a good reference for most of the language features to test
out on. The main thing that it's missing is an assembly DAT (or dat, spin is
case-insensitive) block. An example block can be found in the following file,
starting on line 368 and running the rest of the file:
http://code.google.com/p/anzhelka/source/browse/software/spin/lib/Float32.spin
Original comment by s...@srlmproductions.com
on 5 Feb 2013 at 5:27
Original issue reported on code.google.com by
srlm@anzhelka.com
on 9 Aug 2012 at 2:45Attachments: