Problem defining single quotation mark as a token

9 views
Skip to first unread message

Andrew Butterfield

unread,
Jul 13, 2021, 7:47:24 AM7/13/21
to BNFC Developers and Users
Dear all,
 I am trying to use BNFC to develop a parser for a process algebra called CCS.
I am following a concrete grammar developed by others.

This distinguishes input labels (a) from output labels ('a).
I can define a grammar that is accepted without any errors,
and compiles.

The key line is
Output. Action ::= "'" Label ;

When I run the test program with input

set V = { 'a } ;

I get: syntax error  at line 4, column 11 before `''

Any ideas?

I am using 2.9.2


Andrew Butterfield

unread,
Jul 14, 2021, 7:00:20 AM7/14/21
to bnfc...@googlegroups.com
Dear all,
 I resolved the issue - it was an error elsewhere - it wasn;t the issue about how to specify the sing-quote character that I thought it was...

Thanks,
  Andrew

--
You received this message because you are subscribed to the Google Groups "BNFC Developers and Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bnfc-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bnfc-dev/a6244c28-10da-45c8-a745-23c261f4dfaan%40googlegroups.com.


--
Andrew Butterfield
Dublin, Ireland
Reply all
Reply to author
Forward
0 new messages