May 21, 2004 D grammar (again) | ||||
---|---|---|---|---|
| ||||
Attachments: | As there isn't any written i have decided to try to write one. So these are the thing that i have succeaded in parsing: <CODE> module IDN . IDN ; import IDN , IDN . IDN ; import IDN ; import IDN . IDN , IDN . IDN . IDN , IDN ; private { import IDN . IDN ; struct IDN { enum IDN { IDN , IDN , IDN = IDN / IDN } } } struct IDN { enum { IDN } } union { } enum IDN { IDN , IDN } int IDN , IDN ; float [ ] [ ] IDN ; int function ( int IDN , int [ ] IDN ) IDN ; </CODE> The first problem is the last line: int function ( int IDN , int [ ] IDN ) IDN ; with the current grammar i can't get: int function ( int , int [ ] ) IDN ; and this can be writen in the language. And i figured out that something neads to be added to Declarator but what? I'am not very good at grammars so i would appreciate any help! Thanks :) |
Copyright © 1999-2021 by the D Language Foundation