In this example I use my Babel Bridge parser-generator gem: homepage / github
Here is the 70-line-source-code from the screencast.
I just realized the linked source code is 78 LOC. It's 70 if you remove the comments... :)ReplyDelete
Nice work! I have an issue when I am trying to run for: if 1<2 then 3 end. I receive a message error that it tells me that I don't have the evaluate method undefined. Could you help me resolving this problem? The code is the same with yours. Thanks!ReplyDelete
class TuringParser , :>=, :==]] do
#res = left.evaluate.send operator, right.evaluate
when :<, :<=, :>, :>=, :==
(left.evaluate.send operator, right.evaluate) ? 1 : nil
#res ? 1 : nil
left.evaluate.send operator, right.evaluate
rule :operand, "(", :statement, ")"
rule :operand, /[-]?[0-9]+/ do
You have no if statement in your code you pasted but that may be a typo I made a comment about this exact problem my self the solution is statment and statment in the if dec not match and matchDelete
From your article, and video students can learn easily. We have the skills to legally and efficiently collect evidence and solve the case. With our Private Investigators Irvine CA, desired assistance remains 100% guaranteed.ReplyDelete
The tutorial is so nice. You tried to explain everything. For long distance moving services in Philadelphia PA, get our valuable services.ReplyDelete
Top Paving Contractor in North Hollywood CAReplyDelete