info & debugging?

23 views
Skip to first unread message

David Garcia Sanchez_881124-P572

unread,
Feb 2, 2012, 2:42:50 PM2/2/12
to proglang-course-2012
Hi!

I'm just having problems with parse failures in my grammar and I saw
that using Haskell we can generate info files and a debugging parser
from the Happy files, but is not working. When I write the command
(for my cpp.cf file)

bnfc -i Parcpp.y

or

bnfc -da Parcpp.y

the result is "Error: the input file must end with .cf"

I've tried with bnfc 2.2 (debian) and also with 2.4b (binary for linux
i386)

Something also odd is that I can only generate a Testcpp program from
a Makefile generated by Haskell, if I use any other language I have
some odd errors.

Thanks ;)

Viktor Holmqvist

unread,
Feb 2, 2012, 2:53:49 PM2/2/12
to proglang-c...@googlegroups.com
Hi,

There is a typo on the site where it says "bnfc -i Parcpp.y", it should be "happy -i Parcpp.y"..

// Viktor

David García Sánchez

unread,
Feb 2, 2012, 2:55:49 PM2/2/12
to proglang-c...@googlegroups.com
oh, now it makes sense... and I have now information ;) thank you!

--
David García Sánchez
MSc Student, Computer Science
ARCO Research Group (Computer Architecture and Networks)
School of Computer Science, ESI.
UCLM, University of Castilla-La Mancha
Ciudad Real
Spain
Reply all
Reply to author
Forward
0 new messages