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