Error when using the test-script

30 views
Skip to first unread message

jma...@student.chalmers.se

unread,
Feb 3, 2012, 10:56:26 AM2/3/12
to proglang-course-2012
Hi.

I'm trying to check my grammar with the test script, however I get the
error:

bnfc failed with status: 127

[a copy of my grammar]

It printed this to standard error:
/bin/sh: bnfc: command not found

===============================
So it seems like the command isn't installed and I have always
compiled my grammar by referencing direct to the BNFC binary:
./bnfc -m -java1.5 cplusplus.cf

I'm using Mac OSX Lion.

Do anyone know how to solve the problem or install the BNFC command?

//Marcus

Aarne Ranta

unread,
Feb 3, 2012, 10:59:04 AM2/3/12
to proglang-c...@googlegroups.com
You need to create an always executable bnfc. For instance, put your bnfc directory on your path:

  export PATH=$PATH:your-dir-with-bnfc

  Aarne.

jma...@student.chalmers.se

unread,
Feb 3, 2012, 11:29:14 AM2/3/12
to proglang-course-2012
Thanks, now it works fine:)

On 3 Feb, 16:59, Aarne Ranta <aa...@chalmers.se> wrote:
> You need to create an always executable bnfc. For instance, put your bnfc
> directory on your path:
>
>   export PATH=$PATH:your-dir-with-bnfc
>
>   Aarne.
>
> On Fri, Feb 3, 2012 at 4:56 PM, jmar...@student.chalmers.se <
Reply all
Reply to author
Forward
0 new messages