libdparse
libdparse copied to clipboard
Library for lexing and parsing D source code
```d foreach (scope data; &iterator.foreachBlocks) { } ``` > Basic type, type constructor, symbol, `typeof`, `__traits`, `__vector` or `mixin` expected Removing scope doesn't lead to this message via dscanner. Adding...
Apparently it is headed for the upcoming update: https://dlang.org/changelog/pending.html#bitfields We should prepare for it
https://libdparse.dlang.io/grammar.html and ddoc in parser are a bit outdated. For example AliasAssign and StaticForeachDeclaration are supported by the parser but does not appear in the grammar
Since we can make derived `Parser` classes. updated functions would then be like: ```d /** * Params: * parserConfig = a parser configuration. * Returns: * The parsed module. */...
This will cause the parsing functions to correctly return null when a token is missing. Fixes #392 and other similar issues that have not yet been discovered.
This happens on invalid code (or code being written) ```d void main() { pragma(msg, "add a `" ~ A.stringof ~ "`for " ~ t.stringof"); } ``` ``` #0 raise at...
Signed-off-by: Luís Ferreira
https://dlang.org/spec/ddoc.html#using_ddoc_for_other_documentation If first token is "Ddoc", then it should not be treated as D code. This is a problem for some files like this one: https://github.com/dlang/phobos/blob/master/index.d
https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1030.md The DIP mentions changing the definition of the `ArgumentList` rule, but that would cause problems in places such as case statements, mixins, index expression, and several others. I'll need...
well the rule name is just a suggestion ;) ```ebnf AllocatorRelic ::= "new" "(" ")" ";" ``` it's a func decl and cas have attributes. This is because it will...