dlang-community / Pegged

A Parsing Expression Grammar (PEG) module, using the D programming language.
533 stars 66 forks source link

dub generate visuald + pegged no longer works #268

Closed enjoysmath closed 4 years ago

enjoysmath commented 4 years ago

mixin(grammar(typeCheckerGrammar)); image

Gives static assert error on most basic grammar. To recreate:

Install Visual Studio 2019 Community. Install VisualD. At command line: dub init my_project cd my_project dub build dub generate

veelo commented 4 years ago

You are not giving it a valid Pegged grammar. You need to start with the name of the grammar followed by a colon. For example: https://github.com/PhilippeSigaud/Pegged/wiki.

veelo commented 4 years ago

Please close if this solved your issue.