Open GoogleCodeExporter opened 8 years ago
The current version of asDox requires a class declaration. If you are fimilar
with
PyParsing you could probably tweek the grammar file to make class declaration
optional. I will work with the grammar file to see if its possible.
Original comment by gurufact...@gmail.com
on 20 Jul 2009 at 1:46
I already tried to fix that issue with these lines (in asGrammar.py):
NAMESPACE_DEFINITION = (CLASS_MODIFIERS + NAMESPACE +
QUALIFIED_IDENTIFIER("name") +
TERMINATOR)
PACKAGE_BLOCK = LCURL + ZeroOrMore( IMPORT_DEFINITION ^ BASE_BLOCK ^
NAMESPACE_DEFINITION ) +
(CLASS_DEFINITION ^ INTERFACE_DEFINITION) + RCURL
However, I still have problems with the remaining files. For example, I cannot
find the error in
LinearExtrude.as, and I cannot change the grammar in order to make asDox
accepting also function without
modifiers. I tried putting "optional", like this:
METHOD_DEFINITION = (Optional(METHOD_MODIFIER) + METHOD_SIGNATURE +
BLOCK).setParseAction(parseASMethod)
but it doesn't work. It works only if I completely remove the METHOD_MODIFIER,
but in that case, when there
is an explicit modifier I get an error..
Thank you for your help,
Alberto
Original comment by sba...@gmail.com
on 20 Jul 2009 at 1:55
Original issue reported on code.google.com by
sba...@gmail.com
on 20 Jul 2009 at 10:05Attachments: