mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -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;
|
||
|
}
|