Define an exponentiation operation into the specification file

10 views
Skip to first unread message

MarK One

unread,
Feb 7, 2018, 8:46:29 AM2/7/18
to SableCC
hi guys
I modified an example file of a simple calculator adding one more operation (i called it 'pow').
However, when i executed the modified file i had an error.
I attached the file and the screen of errors.
Thank you
errors.jpg
test.sablecc3

Etienne Gagnon

unread,
Feb 7, 2018, 8:57:45 AM2/7/18
to SableCC
Mark,

It would seem that you have a null reference problem in your code. I would suggest that you use a debugger to help you find it.

Have fun!

Etienne

-- 
Etienne Gagnon, Ph.D.
http://sablecc.org
Reply all
Reply to author
Forward
0 new messages