Last active
February 24, 2016 13:45
-
-
Save Sufrostico/49a8bb3a92ca62624a8c to your computer and use it in GitHub Desktop.
Perl6 Cstruct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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