
So... I've been studying programming lately and I decided to do a program that takes text and gives it a Sylvester-style lisp.
"LETTER_DEFS" is a key/value hash, "/[Ss]/" is a regex that matches an uppercase or lowercase s, ".gsub" replaces all of them with "Th" or "th".
The language is Crystal, but this program should work in Ruby as well.
Shout-out to
Daryn for telling me about RegExr.
"LETTER_DEFS" is a key/value hash, "/[Ss]/" is a regex that matches an uppercase or lowercase s, ".gsub" replaces all of them with "Th" or "th".
The language is Crystal, but this program should work in Ruby as well.
Shout-out to

Category Story / All
Species Feline (Other)
Size 120 x 115px
File Size 210 B
Listed in Folders
I needed to write one tokenizer that was like a compiler. It reads a text and when some words appear within, the program must replace the word with html code. This was for an offline encyclopaedia so the text could cross refer to other pages. So you could add dynamically a list of words and the type of html for exchange.
Oddly a lot of "computer engineers" passed of this project as it was "not able to be coded" and this put the whole project at risk.
Oddly a lot of "computer engineers" passed of this project as it was "not able to be coded" and this put the whole project at risk.
Actionscript 3.0 could even emulate consoles like the nes. But Apple axed the platform for real. I used to code tools in flash: calculators, notepads, even basic web browsers.
But imagine the loss of money if you use your apps and games in the flash player without pass for the apple store.
Hence Apple said Flash was "buggy" and "dangerous", Google followed suit and geeks bite the bait. Well the future now is to use apps that needs micro-payments for anything. A nice future. XD
But imagine the loss of money if you use your apps and games in the flash player without pass for the apple store.
Hence Apple said Flash was "buggy" and "dangerous", Google followed suit and geeks bite the bait. Well the future now is to use apps that needs micro-payments for anything. A nice future. XD
Comments