mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-23 22:49: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;
|
||
|
}
|