Title |
User |
Message |
Date Posted |
Re: Getting Runtime Errors |
spencereir |
That did the trick, thanks |
Jan 02, 2016 - 2:27:06 am UTC |
Re: Getting Runtime Errors |
jargon |
Haha that took me way too long to figure out. Guess my Ruby is rusty... Your problem is with Kernel#exit!, not with rescue. Kernel#exit! by default will result in an exit failure (a nonzero exit code... |
Jan 02, 2016 - 1:45:04 am UTC |
Getting Runtime Errors |
spencereir |
Is there any way to catch errors in Ruby without getting a runtime error? I tested using CEMC data on my machine and it all worked fine, but the grader is giving RE. I realize my solution is.... prett... |
Jan 01, 2016 - 9:19:26 pm UTC |
Re: Typo? |
bbi5291 |
Fixed |
Jan 23, 2010 - 8:12:37 pm UTC |
Typo? |
Bryan |
Well I was looking at this problem and there seems to be a typo? The sample input has AA NA Shouldn't it be A ANA ? |
Jan 23, 2010 - 3:52:33 pm UTC |
... |
javic |
ah this problem reminds me of a book i bought for 7 dollars in the US called Compiler Construction inside is full of those things like CFG |
Mar 02, 2009 - 1:51:18 am UTC |
What's so hard to understand about this problem? |
SourSpinach |
Why are people constantly asking about whether or not things are monkey language words??? It's been explained several times, both in the problem itself and in many comments below. If you can't underst... |
Mar 02, 2009 - 12:39:30 am UTC |
Re: ... |
bbi5291 |
Yes, that is a valid monkey language word. |
Feb 13, 2009 - 2:51:12 am UTC |
... |
humanoidmanticore |
but shouldnt this be possible?: BASNBASNANANA Because it says that an a-word can be followed by an N, and an a-word could be defined has having a B in front and an S at the end. |
Feb 13, 2009 - 2:43:58 am UTC |
BNF syntax for a monkey language word |
bbi5291 |
::= | "N" ::= A | "B" "S" Or, if greater conciseness is desired, ::= "A" | "B" "S" | "N" (Challenge: Prove that these two grammars are equivalent.) You should not be having any trouble un... |
Feb 12, 2009 - 2:41:45 am UTC |