[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CSharp backend
Hi Rubio,
A student of mine is currently implementing a new back-end to SableCC to allow
it generate output for various languages easily without having to modify SableCC
anymore to target a new language.
He should be done with the implementation before the end of this term. He would
probably enjoy having people use his framework to target languages as C++, C#, and
others. The best course of action, on the shorter term, would be for you to
start developing the appropriate templates for C#. The new back-end will use the
same syntax for templates as found in src/org/sablecc/sablecc/*.txt.
If you feel like it, you can also modify the Gen* classes to get the current SableCC
to generate C#, but as soon as the new back-end is ready, I would like to use it
to do so.
Etienne
RUBIOJR wrote:
Hi,
I'm going to work on a sablecc backend to generate csharp instead of
java and adding the necesary code to sablecc so that the user can choose
the languaje that sablecc generates. After that I want to use the "new"
csharp enabled sablecc to rewrite sablecc in csharp and use it under the
mono platform. Anyway, rewriting it is not a priority.
I've been looking through the SableCC3 Beta2 code and it seems that the
classes that need some work are Gen*.java clases and maybe the
MacroExpander class ( I haven't looked at that one yet ). It seems that
the generated *.txt macros need to be changed too. How did you generated
that macros?
Could someone please show me the right way?
Thanks in advance.
p.s. I'm not a native English speaker, so if you don't get the idea
because of my english skills don't hesitate to ask me, I will try to
explain it better.
Cheers,
Rubio Jr.
--
Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/
SableVM: http://www.sablevm.org/
SableCC: http://www.sablecc.org/