Skip to content

Instantly share code, notes, and snippets.

@Sufrostico
Last active February 24, 2016 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sufrostico/49a8bb3a92ca62624a8c to your computer and use it in GitHub Desktop.
Save Sufrostico/49a8bb3a92ca62624a8c to your computer and use it in GitHub Desktop.
Perl6 Cstruct
struct sb_stemmer {
struct SN_env * (*create)(void);
void (*close)(struct SN_env *);
int (*stem)(struct SN_env *);
struct SN_env * env;
};
class sb_stemmer is repr('CStruct') {
has Pointer $.create;
has Pointer $.close;
has Pointer $.stem;
has SN_env $.env;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment