I think you will need to declare an enumeration in Slicc itself. There
are a bunch of enumerations defined in RubySlicc_Exports.sm. These will
generation a .h file that can be used by both Slicc and Ruby. If you need
to use the enums defined in your .h file, you can create a one-to-one
mapping function.
--Mike
>
> I am trying to perform a function call from within the
> directory controller to an external function. My
> external function requires as one of its arguments an
> enum type which is defined in an include file.
>
> Could you please tell me how I should declare this
> enumeration so that the slicc parser does not throw up
> an error nor does it cause a compilation error when
> building ruby?
>
> I have tried declaring the enumeration as an external
> type but that seems to be incompatible. I have also
> tried declaring it in the rubyconfig.defaults in the
> form of a #define - but that also causes the initial
> slicc parsing to fail.
>
> I would really appreciate any help or pointers about
> how to fix this
> Thanks
> Brinda
>
>
>
>
>
>
>
> ___________________________________________________________
> Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
> _______________________________________________
> Gems-users mailing list
> Gems-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
>
|