mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-16 19:34:30 -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;
|
||
|
}
|