|
|
|
|
|
by norir
661 days ago
|
|
While learning to write compilers, I would memorize small, but critical, programs like converting a char range, like [a-zA-Z_], in string format into a table or reporting an error if the range was invalid. At my peak, I could implement the function that did this in about 60 lines of Lua in about 3 minutes. I haven't done exercises like that recently, but I found it helpful at the time. |
|