eryjus / ast-cc

An Abstract Syntax Tree compiler
1 stars 0 forks source link

Usage of commas #11

Closed eryjus closed 8 years ago

eryjus commented 8 years ago

Would it be better to not use commas between the attribute and method specifiers??

eryjus commented 8 years ago

OK, after reviewing the grammar and some sample code, I have decided to remove the commas from between the method and attribute specifiers in the grammar. The reason for this is that there may be several specifiers followed by tokens like 'NO-INIT', 'EXTERNAL', 'ABSTRACT', etc. where it might be convoluted to add an extra rule just to check for the case where a comma exists. Instead, it just seems simpler to remove the comma requirement -- so I did.