ref: 3e0c7551db0206db2a96af00ce8825fb7363c6f6 dir: /examples/username.peg/
%{ #include <unistd.h> %} start = "username" { printf("%s", getlogin()); } | < . > { putchar(yytext[0]); } %% int main() { while (yyparse()); return 0; }