Sunday, March 8, 2009

Reia: no longer indentation-sensitive

Tonight I merged the "indentless" branch of Reia into master. This means that Reia is no longer indentation sensitive. Ironically enough, some of the advice driving me to abandon indentation-based syntax comes from Python creator Guido van Rossum:
"The unspoken, right brain constraint here is that the complexity introduced by a solution to a design problem must be somehow proportional to the problem's importance"
I'm ready to move on to bigger and better things than just twiddling around with my language's grammar, trying to find ways of using indentation to solve minor syntactic annoyances. Any such attempts translate into major headaches for anyone trying to invent a template language.

I was amazed at how quickly I was able to rip out indentation sensitivity and how much it simplified my grammar. There were some particularly interesting commits along the way such as when I ripped indentation sensitivity out of the lexer, replacing it with a single new keyword.

All that said, there are unfortunately now numerous code fragments based on the indentation-sensitive syntax posted throughout the Reia Wiki. I'll be working to clean these up, but if you see one and want to help out, feel free to fix them (although you will have to register with the wiki to make edits). The new syntax looks an awful lot like Ruby, so if you make your best guess adding end keywords where it'd make sense in Ruby, you'll probably be right.

16 comments:

Anonymous said...

Awesome! You don't realize how many converts you are going to get because of this!

Phrogz said...

Not that you needed my approval, but I applaud your choice to abandon indentation-as-markup. And wow, that lexer change is really awesome! :)

Prateek Barn said...

avriq
avriq India

mariablack said...

Pc Optimization
Windows Installation
Data Recovery

shabnam praveen said...

Call girls in Kolkata
Call girls in Chandigarh
Call girls in Chandigarh
Call girls in Gurgaon
Call girls in Chandigarh
Call girls in Chandigarh

shabnam praveen said...

Call girls in Lucknow
Call girls in Guwahati
Call girls in Mumbai
Call girls in Jaipur
Call girls in Jaipur
Call girls in Jaipur
Call girls in Bangalore

mohit sona said...

ivanka trump hot

Unknown said...

You have just shared good info but you can also try and gbwhatsapp to see its features.

walaa said...

شركة بتبوك
شركة مكافحة حشرات بتبوك
شركة مكافحة النمل الابيض بتبوك
شركة رش مبيدات بتبوك

Çāll M3 ĀSH said...

miroclash

ahmed said...

أشكال السجاد والموكيت التي تهتم مؤسسة غسيل موكيت وسجاد بتنظيفه
يتطلب تطهير السجاد والموكيت إلى توافر تقنيات جديدة تعاون على سرعة تنظيفها والمحافظة على الوانه وخاماته وتمتاز مؤسسة غسيل موكيت وسجاد بتقديم أفضل أساليب تطهير وغسيل لجميع أشكال السجاد المتغايرة .شركة النجوم لخدمات التنظيف
شركة تنظيف فلل بالرياض
شركة عزل خزانات بالرياض
شركة جلي بلاط بالرياض

Ahmad said...

Good Job you Are sharing Such a effective and informative stuff
clash of magic
clash of magic Apk

coc mod apk said...

superb work sir, you are really doing a great job. could you plz make another dedicated website for such topics like this one?

coc mod apk said...
This comment has been removed by the author.
selfdrivingcarservice said...

few servers. Additionally, a few players
miroclash don't need everything boundless. So for the reason being there is a point of confinement. You can check all the data in the individual game server data.

bojangleslistens said...

Do you know there is a decent opportunity to win the moment remunerate by finishing the straightforward AMC Theaters clients input tellamc overview and get an opportunity to win the $100 worth of gift voucher.