diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/yacco2/library/wset.cpp |
Initial commit
Diffstat (limited to 'web/yacco2/library/wset.cpp')
-rw-r--r-- | web/yacco2/library/wset.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/web/yacco2/library/wset.cpp b/web/yacco2/library/wset.cpp new file mode 100644 index 0000000000..3fee31bf9d --- /dev/null +++ b/web/yacco2/library/wset.cpp @@ -0,0 +1,38 @@ +/*42:*/ +//#line 48 "/usr/local/yacco2/library/set.w" + +/*565:*/ +//#line 24 "/usr/local/yacco2/library/macros.w" + + + +/*:565*/ +//#line 49 "/usr/local/yacco2/library/set.w" + +/*26:*/ +//#line 404 "/usr/local/yacco2/library/intro.w" + +#include "yacco2.h" + +/*:26*/ +//#line 50 "/usr/local/yacco2/library/set.w" + +/*43:*/ +//#line 54 "/usr/local/yacco2/library/set.w" + + +/*:43*//*47:*/ +//#line 98 "/usr/local/yacco2/library/set.w" + +extern void +yacco2::create_set_entry(yacco2::USINT Enum_id,yacco2::Set_entry&Set){ +INT R= Enum_id%SET_ELEM_NO_BITS; +Set.partition__= Enum_id/SET_ELEM_NO_BITS; +Set.elements__= 1<<R; +} + +/*:47*/ +//#line 51 "/usr/local/yacco2/library/set.w" + + +/*:42*/ |