X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=newspeak.l;h=51333abd1034927d31f785ae344897f0ba6cfa9f;hb=e99ec25514ebceb45c215fba14319769d34904db;hp=e291f6d9d7b4321c43afe62b59de03dd41401777;hpb=7e3afbbacdd24f8c3fb87599eeda32b977fe6d6c;p=filters.git diff --git a/newspeak.l b/newspeak.l index e291f6d..51333ab 100644 --- a/newspeak.l +++ b/newspeak.l @@ -2,9 +2,18 @@ /* * newspeak.l, version 1.1. * Lex filter to transform plain English into NewSpeak. - * Copyright (c) 1991 Jamie Zawinski . - * Permission granted for noncommercial use and redistribution. + * Copyright (c) 1991 Jamie Zawinski . * + * Permission to use, copy, modify, distribute, and sell this + * software and its documentation for any purpose is hereby granted + * without fee, provided that the above copyright notice appear in + * all copies and that both that copyright notice and this + * permission notice appear in supporting documentation. No + * representations are made about the suitability of this software + * for any purpose. It is provided "as is" without express or + * implied warranty. + * + * Permissiom granted for noncommercial use and redistribution. * To compile: * * flex newspeak.l @@ -575,7 +584,7 @@ robably|ventually|[Oo]bvious|[Bb]asic|{W}[Oo]nly|otally | if (14 == fcounter++) printf("(fnord) "); } -[.,!?]\"([^\n\".!]+[.!])?\n/[\n\t ] printf("%c Hail Big Brother!\"%s",Y0,yytext+1); +[.,!?]\"([^\n\".!]+[.!])?\n/[\n\t ] printf("%c Hail Big Brother!\"%s",Y0,yytext+2); \"([.,!?][^\n\".!]+[.!])?\n/[\n\t ] printf("%c Hail Big Brother!\"%s",Y1,yytext+2); . printf(yytext);