mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 09:26:18 -05:00
15 lines
162 B
Plaintext
15 lines
162 B
Plaintext
|
%{
|
||
|
#include <unistd.h>
|
||
|
%}
|
||
|
|
||
|
start = "username" { printf("%s", getlogin()); }
|
||
|
| < . > { putchar(yytext[0]); }
|
||
|
|
||
|
%%
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
while (yyparse());
|
||
|
return 0;
|
||
|
}
|