From: "Derrick B." Date: 2012-12-24T07:40:03+09:00 Subject: Re: Perl to Ruby: regex captures to assignment. 7stud -- wrote in post #1090043: > > And you have no idea why that is? The perl parser knows that a > statement has ended when it sees a semi-colon. How does the ruby parser > know when a statement has ended? > Ruby is similar to Python in that it uses line termination, unless you indicate an implied line continuation. a = b + c implies continuation, whereas a = b + c does not. You can also use a semicolon in Ruby to end a statement, but usually that is when you put multiple statements on one line. I cannot wait to take the Compiler Design class, because these details will be exactly what I need to take into consideration when creating my own language parser. -- Posted via http://www.ruby-forum.com/.