5 ms·
> Perl – While Perl's keywords and function names are generally in English, it allows modification of its parser to modify the input language, such as in Damian
by rett12 13y ago
> Perl – While Perl's keywords and function names are generally in English, it allows modification of its parser to modify the input language, such as in Damian Conway's Lingua::Romana::Perligata module, which allows programs to be written in Latin or his Lingua::tlhInganHol::yIghun Perl language in Klingon. They do not just change the keywords but also the grammar to match the language.
That's impressive
- eCa 13y agoAs an example just how far they go, the statement: clavis hashus nominamentum da. Is equivalent to [1]: @keys = keys %hash; And in Klingon Perl [2]: De'pu'wI' bIH yInob! Is equivalent to: %data = @_; [1] https://metacpan.org/module/DCONWAY/Lingua-Romana-Perligata-0.50/lib/Lingua/Romana/Perligata.pm https://metacpan.org/module/DCONWAY/Lingua-Romana-Perligata-... [2] https://metacpan.org/module/Lingua::tlhInganHol::yIghun https://metacpan.org/module/Lingua::tlhInganHol::yIghun