-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[translation] C+ type stubs for frontend/args_def.py.
Down to 3 compile errors with frontend/args.py! All related to args::UsageError().
- Loading branch information
Andy Chu
committed
May 9, 2020
1 parent
56cdd45
commit 30ed02b
Showing
4 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// frontend_arg_def.h | ||
|
||
#ifndef FRONTEND_ARG_DEF_H | ||
#define FRONTEND_ARG_DEF_H | ||
|
||
#include "mylib.h" | ||
|
||
namespace args { | ||
class _Action; | ||
class SetToArg; | ||
}; | ||
|
||
namespace arg_def { | ||
|
||
class _FlagSpec { | ||
public: | ||
Dict<Str*, bool>* arity0; | ||
Dict<Str*, args::SetToArg*>* arity1; | ||
Dict<Str*, bool>* options; | ||
Dict<Str*, runtime_asdl::value_t*>* defaults; | ||
}; | ||
|
||
class _FlagSpecAndMore { | ||
public: | ||
Dict<Str*, args::_Action*>* actions_long; | ||
Dict<Str*, args::_Action*>* actions_short; | ||
Dict<Str*, runtime_asdl::value_t*>* defaults; | ||
|
||
}; | ||
|
||
} // namespace arg_def | ||
|
||
#endif // FRONTEND_ARG_DEF_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters