rochus-keller / EbnfStudio

EbnfStudio can be used to edit and analyze EBNF grammars.
GNU General Public License v2.0
69 stars 9 forks source link

Support for Comments #4

Open rkatzmann opened 1 year ago

rkatzmann commented 1 year ago

Please add support for comments. Currently I see only "//" but official comments "(*" are not supported https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form (Table of symbols).

Also if C++-style comments are supported, it would be great to have multi-line comments like C++, C and for EBNF as well.

Thank you

Example:

/* 
 * EBNF Grammar for my humble language
 * - Purpose: <insert some explanation here>
 * - See also: <insert some URL here>
 */

Thank you

rochus-keller commented 1 year ago

I will put /**/ comments on the TODO list, but it's not a top priority (I currently implement a C++ parser generator which can be used instead of Coco/R et al.). Anyway the tool still has a lot of bugs and I should improve the analyzer too.