[Mono-list] writing an interpreter in c#
Piers Haken
piersh@friskit.com
Mon, 19 May 2003 07:59:56 -0700
Have a look at jay, the yacc-derived compiler generator that's used to
generate the c# language parser in mcs.exe. It's part of the mcs CVS
tree.
Piers.
> -----Original Message-----
> From: stett@cs.iastate.edu [mailto:stett@cs.iastate.edu]=20
> Sent: Saturday, May 17, 2003 5:19 PM
> To: mono-list@ximian.com
> Subject: [Mono-list] writing an interpreter in c#
>=20
>=20
> Hi,
> I'm wanting to write an interpreter in C# on my linux=20
> machine. I have been looking at the mono source for help on=20
> this project. I have come across a project called Coco/R for=20
> C# to generate a scanner and parser, but I have been unable=20
> to figure out how to get that working on a linux machine. I=20
> thought maybe I needed to get CLI for linux. I'm trying to=20
> install it, but it gives me an error:
>=20
> $ ./buildall
> ...
> PAL build complete.
> gcc -o=20
> /home/stuart/tmp/sscli_linux_20020821/build/v1.x86fstchk.rotor/nmake
> /usr/lib/crti.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/crtbegin.o
> ../../pal/unix/startup/objdf/palcrt1.o getrcmsg.o action.o=20
> build.o=20
> charmap.o command.o error.o exec.o file.o globals.o =20
> ifexpr.o init.o=20
> inline.o lexer.o macro.o nmake.o parser.o print.o rpn.o=20
> rule.o util.o=20
> utilp.o win32.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/crtend.o
> /usr/lib/crtn.o -nostartfiles -pthread=20
> -L/home/stuart/tmp/sscli_linux_20020821/build/v1.x86fstchk.rot
> or -lrotor_pal -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2 -lgcc
> action.o(.eh_frame+0x11): undefined reference to=20
> `__gxx_personality_v0'
> build.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
> command.o(.eh_frame+0x11): undefined reference to=20
> `__gxx_personality_v0'
> error.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
> exec.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
> ifexpr.o(.eh_frame+0x11): more undefined references to=20
> `__gxx_personality_v0' follow
> collect2: ld returned 1 exit status
> make: ***=20
> [/home/stuart/tmp/sscli_linux_20020821/build/v1.x86fstchk.rotor/nmake]
> Error 1
>=20
> Please let me know if you know how to debug this error or if=20
> you have any suggestions/references/etc for my project=20
> (writing an interpreter for a Maya Embedded Language in C# on=20
> a linux computer). Any help=20
> would be very much appreciated.
>=20
> Thanks in advance,
> Stuart
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com=20
> http://lists.ximian.com/mailman/listinfo/mono-> list
>=20