pssparser 3.1.1__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (541) hide show
  1. pssparser/__init__.py +73 -0
  2. pssparser/__main__.py +5 -0
  3. pssparser/__version__.py +34 -0
  4. pssparser/ast.cp313-win_amd64.pyd +0 -0
  5. pssparser/ast.dll +0 -0
  6. pssparser/ast.lib +0 -0
  7. pssparser/ast.pxd +3183 -0
  8. pssparser/ast.pyi +8117 -0
  9. pssparser/ast_decl.pxd +3642 -0
  10. pssparser/checkers/__init__.py +7 -0
  11. pssparser/checkers/base.py +44 -0
  12. pssparser/checkers/context.py +114 -0
  13. pssparser/checkers/core_checker.py +823 -0
  14. pssparser/checkers/manager.py +224 -0
  15. pssparser/checkers/markerdef.py +45 -0
  16. pssparser/cli/__init__.py +1 -0
  17. pssparser/cli/app.py +192 -0
  18. pssparser/cli/checker_cmds.py +74 -0
  19. pssparser/cli/commands.py +290 -0
  20. pssparser/cli/diagnostics.py +135 -0
  21. pssparser/cli/output.py +190 -0
  22. pssparser/cli/source_context.py +53 -0
  23. pssparser/cli/suggestion.py +64 -0
  24. pssparser/core.cp313-win_amd64.pyd +0 -0
  25. pssparser/core.pxd +230 -0
  26. pssparser/cst.py +66 -0
  27. pssparser/cst.pyi +48 -0
  28. pssparser/decl.pxd +252 -0
  29. pssparser/parser.py +374 -0
  30. pssparser/profiling/__init__.py +18 -0
  31. pssparser/profiling/aggregate.py +160 -0
  32. pssparser/profiling/collect.py +168 -0
  33. pssparser/profiling/collect_cold.py +122 -0
  34. pssparser/profiling/compare.py +110 -0
  35. pssparser/profiling/corpus.py +138 -0
  36. pssparser/profiling/grammar_map.py +96 -0
  37. pssparser/profiling/model.py +274 -0
  38. pssparser/profiling/report.py +234 -0
  39. pssparser/pssparser.dll +0 -0
  40. pssparser/pssparser.lib +0 -0
  41. pssparser/share/include/PyBaseVisitor.h +493 -0
  42. pssparser/share/include/PyParserUtils.h +47 -0
  43. pssparser/share/include/antlr4-runtime/ANTLRErrorListener.h +167 -0
  44. pssparser/share/include/antlr4-runtime/ANTLRErrorStrategy.h +121 -0
  45. pssparser/share/include/antlr4-runtime/ANTLRFileStream.h +30 -0
  46. pssparser/share/include/antlr4-runtime/ANTLRInputStream.h +79 -0
  47. pssparser/share/include/antlr4-runtime/BailErrorStrategy.h +59 -0
  48. pssparser/share/include/antlr4-runtime/BaseErrorListener.h +36 -0
  49. pssparser/share/include/antlr4-runtime/BufferedTokenStream.h +200 -0
  50. pssparser/share/include/antlr4-runtime/CharStream.h +37 -0
  51. pssparser/share/include/antlr4-runtime/CommonToken.h +158 -0
  52. pssparser/share/include/antlr4-runtime/CommonTokenFactory.h +74 -0
  53. pssparser/share/include/antlr4-runtime/CommonTokenStream.h +79 -0
  54. pssparser/share/include/antlr4-runtime/ConsoleErrorListener.h +35 -0
  55. pssparser/share/include/antlr4-runtime/DefaultErrorStrategy.h +466 -0
  56. pssparser/share/include/antlr4-runtime/DiagnosticErrorListener.h +80 -0
  57. pssparser/share/include/antlr4-runtime/Exceptions.h +99 -0
  58. pssparser/share/include/antlr4-runtime/FailedPredicateException.h +32 -0
  59. pssparser/share/include/antlr4-runtime/FlatHashMap.h +57 -0
  60. pssparser/share/include/antlr4-runtime/FlatHashSet.h +57 -0
  61. pssparser/share/include/antlr4-runtime/InputMismatchException.h +24 -0
  62. pssparser/share/include/antlr4-runtime/IntStream.h +218 -0
  63. pssparser/share/include/antlr4-runtime/InterpreterRuleContext.h +45 -0
  64. pssparser/share/include/antlr4-runtime/Lexer.h +196 -0
  65. pssparser/share/include/antlr4-runtime/LexerInterpreter.h +46 -0
  66. pssparser/share/include/antlr4-runtime/LexerNoViableAltException.h +31 -0
  67. pssparser/share/include/antlr4-runtime/ListTokenSource.h +88 -0
  68. pssparser/share/include/antlr4-runtime/NoViableAltException.h +42 -0
  69. pssparser/share/include/antlr4-runtime/Parser.h +461 -0
  70. pssparser/share/include/antlr4-runtime/ParserInterpreter.h +173 -0
  71. pssparser/share/include/antlr4-runtime/ParserRuleContext.h +147 -0
  72. pssparser/share/include/antlr4-runtime/ProxyErrorListener.h +38 -0
  73. pssparser/share/include/antlr4-runtime/RecognitionException.h +98 -0
  74. pssparser/share/include/antlr4-runtime/Recognizer.h +160 -0
  75. pssparser/share/include/antlr4-runtime/RuleContext.h +141 -0
  76. pssparser/share/include/antlr4-runtime/RuleContextWithAltNum.h +32 -0
  77. pssparser/share/include/antlr4-runtime/RuntimeMetaData.h +155 -0
  78. pssparser/share/include/antlr4-runtime/Token.h +92 -0
  79. pssparser/share/include/antlr4-runtime/TokenFactory.h +30 -0
  80. pssparser/share/include/antlr4-runtime/TokenSource.h +85 -0
  81. pssparser/share/include/antlr4-runtime/TokenStream.h +137 -0
  82. pssparser/share/include/antlr4-runtime/TokenStreamRewriter.h +295 -0
  83. pssparser/share/include/antlr4-runtime/UnbufferedCharStream.h +117 -0
  84. pssparser/share/include/antlr4-runtime/UnbufferedTokenStream.h +115 -0
  85. pssparser/share/include/antlr4-runtime/Version.h +42 -0
  86. pssparser/share/include/antlr4-runtime/Vocabulary.h +177 -0
  87. pssparser/share/include/antlr4-runtime/WritableToken.h +23 -0
  88. pssparser/share/include/antlr4-runtime/antlr4-common.h +101 -0
  89. pssparser/share/include/antlr4-runtime/antlr4-runtime.h +168 -0
  90. pssparser/share/include/antlr4-runtime/atn/ATN.h +133 -0
  91. pssparser/share/include/antlr4-runtime/atn/ATNConfig.h +157 -0
  92. pssparser/share/include/antlr4-runtime/atn/ATNConfigSet.h +157 -0
  93. pssparser/share/include/antlr4-runtime/atn/ATNDeserializationOptions.h +48 -0
  94. pssparser/share/include/antlr4-runtime/atn/ATNDeserializer.h +32 -0
  95. pssparser/share/include/antlr4-runtime/atn/ATNSimulator.h +71 -0
  96. pssparser/share/include/antlr4-runtime/atn/ATNState.h +139 -0
  97. pssparser/share/include/antlr4-runtime/atn/ATNStateType.h +36 -0
  98. pssparser/share/include/antlr4-runtime/atn/ATNType.h +20 -0
  99. pssparser/share/include/antlr4-runtime/atn/ActionTransition.h +35 -0
  100. pssparser/share/include/antlr4-runtime/atn/AmbiguityInfo.h +68 -0
  101. pssparser/share/include/antlr4-runtime/atn/ArrayPredictionContext.h +51 -0
  102. pssparser/share/include/antlr4-runtime/atn/AtomTransition.h +33 -0
  103. pssparser/share/include/antlr4-runtime/atn/BasicBlockStartState.h +24 -0
  104. pssparser/share/include/antlr4-runtime/atn/BasicState.h +23 -0
  105. pssparser/share/include/antlr4-runtime/atn/BlockEndState.h +26 -0
  106. pssparser/share/include/antlr4-runtime/atn/BlockStartState.h +30 -0
  107. pssparser/share/include/antlr4-runtime/atn/ContextSensitivityInfo.h +47 -0
  108. pssparser/share/include/antlr4-runtime/atn/DecisionEventInfo.h +70 -0
  109. pssparser/share/include/antlr4-runtime/atn/DecisionInfo.h +227 -0
  110. pssparser/share/include/antlr4-runtime/atn/DecisionState.h +34 -0
  111. pssparser/share/include/antlr4-runtime/atn/EpsilonTransition.h +42 -0
  112. pssparser/share/include/antlr4-runtime/atn/ErrorInfo.h +43 -0
  113. pssparser/share/include/antlr4-runtime/atn/HashUtils.h +18 -0
  114. pssparser/share/include/antlr4-runtime/atn/LL1Analyzer.h +76 -0
  115. pssparser/share/include/antlr4-runtime/atn/LexerATNConfig.h +44 -0
  116. pssparser/share/include/antlr4-runtime/atn/LexerATNSimulator.h +199 -0
  117. pssparser/share/include/antlr4-runtime/atn/LexerAction.h +100 -0
  118. pssparser/share/include/antlr4-runtime/atn/LexerActionExecutor.h +128 -0
  119. pssparser/share/include/antlr4-runtime/atn/LexerActionType.h +57 -0
  120. pssparser/share/include/antlr4-runtime/atn/LexerChannelAction.h +59 -0
  121. pssparser/share/include/antlr4-runtime/atn/LexerCustomAction.h +75 -0
  122. pssparser/share/include/antlr4-runtime/atn/LexerIndexedCustomAction.h +76 -0
  123. pssparser/share/include/antlr4-runtime/atn/LexerModeAction.h +57 -0
  124. pssparser/share/include/antlr4-runtime/atn/LexerMoreAction.h +53 -0
  125. pssparser/share/include/antlr4-runtime/atn/LexerPopModeAction.h +53 -0
  126. pssparser/share/include/antlr4-runtime/atn/LexerPushModeAction.h +57 -0
  127. pssparser/share/include/antlr4-runtime/atn/LexerSkipAction.h +51 -0
  128. pssparser/share/include/antlr4-runtime/atn/LexerTypeAction.h +51 -0
  129. pssparser/share/include/antlr4-runtime/atn/LookaheadEventInfo.h +42 -0
  130. pssparser/share/include/antlr4-runtime/atn/LoopEndState.h +26 -0
  131. pssparser/share/include/antlr4-runtime/atn/NotSetTransition.h +27 -0
  132. pssparser/share/include/antlr4-runtime/atn/OrderedATNConfigSet.h +25 -0
  133. pssparser/share/include/antlr4-runtime/atn/ParseInfo.h +102 -0
  134. pssparser/share/include/antlr4-runtime/atn/ParserATNSimulator.h +911 -0
  135. pssparser/share/include/antlr4-runtime/atn/ParserATNSimulatorOptions.h +50 -0
  136. pssparser/share/include/antlr4-runtime/atn/PlusBlockStartState.h +29 -0
  137. pssparser/share/include/antlr4-runtime/atn/PlusLoopbackState.h +25 -0
  138. pssparser/share/include/antlr4-runtime/atn/PrecedencePredicateTransition.h +35 -0
  139. pssparser/share/include/antlr4-runtime/atn/PredicateEvalInfo.h +62 -0
  140. pssparser/share/include/antlr4-runtime/atn/PredicateTransition.h +50 -0
  141. pssparser/share/include/antlr4-runtime/atn/PredictionContext.h +225 -0
  142. pssparser/share/include/antlr4-runtime/atn/PredictionContextCache.h +63 -0
  143. pssparser/share/include/antlr4-runtime/atn/PredictionContextMergeCache.h +101 -0
  144. pssparser/share/include/antlr4-runtime/atn/PredictionContextMergeCacheOptions.h +71 -0
  145. pssparser/share/include/antlr4-runtime/atn/PredictionContextType.h +21 -0
  146. pssparser/share/include/antlr4-runtime/atn/PredictionMode.h +436 -0
  147. pssparser/share/include/antlr4-runtime/atn/ProfilingATNSimulator.h +60 -0
  148. pssparser/share/include/antlr4-runtime/atn/RangeTransition.h +31 -0
  149. pssparser/share/include/antlr4-runtime/atn/RuleStartState.h +26 -0
  150. pssparser/share/include/antlr4-runtime/atn/RuleStopState.h +27 -0
  151. pssparser/share/include/antlr4-runtime/atn/RuleTransition.h +42 -0
  152. pssparser/share/include/antlr4-runtime/atn/SemanticContext.h +237 -0
  153. pssparser/share/include/antlr4-runtime/atn/SemanticContextType.h +23 -0
  154. pssparser/share/include/antlr4-runtime/atn/SerializedATNView.h +101 -0
  155. pssparser/share/include/antlr4-runtime/atn/SetTransition.h +38 -0
  156. pssparser/share/include/antlr4-runtime/atn/SingletonPredictionContext.h +43 -0
  157. pssparser/share/include/antlr4-runtime/atn/StarBlockStartState.h +24 -0
  158. pssparser/share/include/antlr4-runtime/atn/StarLoopEntryState.h +37 -0
  159. pssparser/share/include/antlr4-runtime/atn/StarLoopbackState.h +25 -0
  160. pssparser/share/include/antlr4-runtime/atn/TokensStartState.h +24 -0
  161. pssparser/share/include/antlr4-runtime/atn/Transition.h +65 -0
  162. pssparser/share/include/antlr4-runtime/atn/TransitionType.h +33 -0
  163. pssparser/share/include/antlr4-runtime/atn/WildcardTransition.h +27 -0
  164. pssparser/share/include/antlr4-runtime/dfa/DFA.h +96 -0
  165. pssparser/share/include/antlr4-runtime/dfa/DFASerializer.h +32 -0
  166. pssparser/share/include/antlr4-runtime/dfa/DFAState.h +154 -0
  167. pssparser/share/include/antlr4-runtime/dfa/LexerDFASerializer.h +22 -0
  168. pssparser/share/include/antlr4-runtime/internal/Synchronization.h +154 -0
  169. pssparser/share/include/antlr4-runtime/misc/InterpreterDataReader.h +33 -0
  170. pssparser/share/include/antlr4-runtime/misc/Interval.h +84 -0
  171. pssparser/share/include/antlr4-runtime/misc/IntervalSet.h +190 -0
  172. pssparser/share/include/antlr4-runtime/misc/MurmurHash.h +102 -0
  173. pssparser/share/include/antlr4-runtime/misc/Predicate.h +21 -0
  174. pssparser/share/include/antlr4-runtime/support/Any.h +16 -0
  175. pssparser/share/include/antlr4-runtime/support/Arrays.h +149 -0
  176. pssparser/share/include/antlr4-runtime/support/BitSet.h +76 -0
  177. pssparser/share/include/antlr4-runtime/support/CPPUtils.h +65 -0
  178. pssparser/share/include/antlr4-runtime/support/Casts.h +34 -0
  179. pssparser/share/include/antlr4-runtime/support/Declarations.h +161 -0
  180. pssparser/share/include/antlr4-runtime/support/StringUtils.h +16 -0
  181. pssparser/share/include/antlr4-runtime/support/Unicode.h +28 -0
  182. pssparser/share/include/antlr4-runtime/support/Utf8.h +54 -0
  183. pssparser/share/include/antlr4-runtime/tree/AbstractParseTreeVisitor.h +129 -0
  184. pssparser/share/include/antlr4-runtime/tree/ErrorNode.h +24 -0
  185. pssparser/share/include/antlr4-runtime/tree/ErrorNodeImpl.h +43 -0
  186. pssparser/share/include/antlr4-runtime/tree/IterativeParseTreeWalker.h +53 -0
  187. pssparser/share/include/antlr4-runtime/tree/ParseTree.h +111 -0
  188. pssparser/share/include/antlr4-runtime/tree/ParseTreeListener.h +39 -0
  189. pssparser/share/include/antlr4-runtime/tree/ParseTreeProperty.h +50 -0
  190. pssparser/share/include/antlr4-runtime/tree/ParseTreeType.h +22 -0
  191. pssparser/share/include/antlr4-runtime/tree/ParseTreeVisitor.h +57 -0
  192. pssparser/share/include/antlr4-runtime/tree/ParseTreeWalker.h +55 -0
  193. pssparser/share/include/antlr4-runtime/tree/TerminalNode.h +40 -0
  194. pssparser/share/include/antlr4-runtime/tree/TerminalNodeImpl.h +32 -0
  195. pssparser/share/include/antlr4-runtime/tree/Trees.h +78 -0
  196. pssparser/share/include/antlr4-runtime/tree/pattern/Chunk.h +44 -0
  197. pssparser/share/include/antlr4-runtime/tree/pattern/ParseTreeMatch.h +132 -0
  198. pssparser/share/include/antlr4-runtime/tree/pattern/ParseTreePattern.h +105 -0
  199. pssparser/share/include/antlr4-runtime/tree/pattern/ParseTreePatternMatcher.h +185 -0
  200. pssparser/share/include/antlr4-runtime/tree/pattern/RuleTagToken.h +117 -0
  201. pssparser/share/include/antlr4-runtime/tree/pattern/TagChunk.h +86 -0
  202. pssparser/share/include/antlr4-runtime/tree/pattern/TextChunk.h +51 -0
  203. pssparser/share/include/antlr4-runtime/tree/pattern/TokenTagToken.h +80 -0
  204. pssparser/share/include/antlr4-runtime/tree/xpath/XPath.h +86 -0
  205. pssparser/share/include/antlr4-runtime/tree/xpath/XPathElement.h +40 -0
  206. pssparser/share/include/antlr4-runtime/tree/xpath/XPathLexer.h +53 -0
  207. pssparser/share/include/antlr4-runtime/tree/xpath/XPathLexerErrorListener.h +22 -0
  208. pssparser/share/include/antlr4-runtime/tree/xpath/XPathRuleAnywhereElement.h +27 -0
  209. pssparser/share/include/antlr4-runtime/tree/xpath/XPathRuleElement.h +26 -0
  210. pssparser/share/include/antlr4-runtime/tree/xpath/XPathTokenAnywhereElement.h +25 -0
  211. pssparser/share/include/antlr4-runtime/tree/xpath/XPathTokenElement.h +26 -0
  212. pssparser/share/include/antlr4-runtime/tree/xpath/XPathWildcardAnywhereElement.h +23 -0
  213. pssparser/share/include/antlr4-runtime/tree/xpath/XPathWildcardElement.h +23 -0
  214. pssparser/share/include/pssp/FactoryExt.h +26 -0
  215. pssparser/share/include/pssp/IAstBuilder.h +66 -0
  216. pssparser/share/include/pssp/IBuiltinTypes.h +46 -0
  217. pssparser/share/include/pssp/IFactory.h +119 -0
  218. pssparser/share/include/pssp/IFmtCst.h +137 -0
  219. pssparser/share/include/pssp/IFmtTokenStream.h +199 -0
  220. pssparser/share/include/pssp/ILinker.h +49 -0
  221. pssparser/share/include/pssp/ILookupLocationResult.h +37 -0
  222. pssparser/share/include/pssp/IMarker.h +57 -0
  223. pssparser/share/include/pssp/IMarkerCollector.h +47 -0
  224. pssparser/share/include/pssp/IMarkerListener.h +24 -0
  225. pssparser/share/include/pssp/INameResolver.h +50 -0
  226. pssparser/share/include/pssp/INameResolverClient.h +47 -0
  227. pssparser/share/include/pssp/INamespace.h +56 -0
  228. pssparser/share/include/pssp/IParseProfileInfo.h +194 -0
  229. pssparser/share/include/pssp/ISymbol.h +37 -0
  230. pssparser/share/include/pssp/ISymbolRef.h +42 -0
  231. pssparser/share/include/pssp/ISymbolResolver.h +29 -0
  232. pssparser/share/include/pssp/ISymbolScope.h +51 -0
  233. pssparser/share/include/pssp/ISymbolTable.h +89 -0
  234. pssparser/share/include/pssp/ISymbolTableIterator.h +71 -0
  235. pssparser/share/include/pssp/ITaskFindElementByLocation.h +80 -0
  236. pssparser/share/include/pssp/ITypeDecl.h +34 -0
  237. pssparser/share/include/pssp/IVal.h +52 -0
  238. pssparser/share/include/pssp/IValArray.h +38 -0
  239. pssparser/share/include/pssp/IValFactory.h +46 -0
  240. pssparser/share/include/pssp/IValInt.h +46 -0
  241. pssparser/share/include/pssp/IValStr.h +38 -0
  242. pssparser/share/include/pssp/IValStruct.h +38 -0
  243. pssparser/share/include/pssp/IValVisitor.h +52 -0
  244. pssparser/share/include/pssp/SymbolKindE.h +38 -0
  245. pssparser/share/include/pssp/ast/AssignOp.h +39 -0
  246. pssparser/share/include/pssp/ast/CommentPlacement.h +35 -0
  247. pssparser/share/include/pssp/ast/DocCommentForm.h +37 -0
  248. pssparser/share/include/pssp/ast/ExecKind.h +43 -0
  249. pssparser/share/include/pssp/ast/ExprBinOp.h +51 -0
  250. pssparser/share/include/pssp/ast/ExprUnaryOp.h +39 -0
  251. pssparser/share/include/pssp/ast/ExtendTargetE.h +41 -0
  252. pssparser/share/include/pssp/ast/FactoryExt.h +35 -0
  253. pssparser/share/include/pssp/ast/FieldAttr.h +61 -0
  254. pssparser/share/include/pssp/ast/FunctionParamDeclKind.h +44 -0
  255. pssparser/share/include/pssp/ast/IAction.h +58 -0
  256. pssparser/share/include/pssp/ast/IActionFieldInitializer.h +64 -0
  257. pssparser/share/include/pssp/ast/IActionHandleField.h +64 -0
  258. pssparser/share/include/pssp/ast/IActivityActionHandleTraversal.h +71 -0
  259. pssparser/share/include/pssp/ast/IActivityActionTypeTraversal.h +71 -0
  260. pssparser/share/include/pssp/ast/IActivityAtomicBlock.h +57 -0
  261. pssparser/share/include/pssp/ast/IActivityBindStmt.h +61 -0
  262. pssparser/share/include/pssp/ast/IActivityConstraint.h +57 -0
  263. pssparser/share/include/pssp/ast/IActivityDecl.h +51 -0
  264. pssparser/share/include/pssp/ast/IActivityForeach.h +75 -0
  265. pssparser/share/include/pssp/ast/IActivityIfElse.h +68 -0
  266. pssparser/share/include/pssp/ast/IActivityJoinSpec.h +51 -0
  267. pssparser/share/include/pssp/ast/IActivityJoinSpecBranch.h +57 -0
  268. pssparser/share/include/pssp/ast/IActivityJoinSpecFirst.h +57 -0
  269. pssparser/share/include/pssp/ast/IActivityJoinSpecNone.h +51 -0
  270. pssparser/share/include/pssp/ast/IActivityJoinSpecSelect.h +57 -0
  271. pssparser/share/include/pssp/ast/IActivityLabeledScope.h +57 -0
  272. pssparser/share/include/pssp/ast/IActivityLabeledStmt.h +57 -0
  273. pssparser/share/include/pssp/ast/IActivityMatch.h +64 -0
  274. pssparser/share/include/pssp/ast/IActivityMatchChoice.h +64 -0
  275. pssparser/share/include/pssp/ast/IActivityParallel.h +57 -0
  276. pssparser/share/include/pssp/ast/IActivityRepeatCount.h +71 -0
  277. pssparser/share/include/pssp/ast/IActivityRepeatWhile.h +64 -0
  278. pssparser/share/include/pssp/ast/IActivityReplicate.h +68 -0
  279. pssparser/share/include/pssp/ast/IActivitySchedule.h +57 -0
  280. pssparser/share/include/pssp/ast/IActivitySchedulingConstraint.h +61 -0
  281. pssparser/share/include/pssp/ast/IActivitySelect.h +57 -0
  282. pssparser/share/include/pssp/ast/IActivitySelectBranch.h +64 -0
  283. pssparser/share/include/pssp/ast/IActivitySequence.h +51 -0
  284. pssparser/share/include/pssp/ast/IActivityStmt.h +51 -0
  285. pssparser/share/include/pssp/ast/IActivitySuper.h +51 -0
  286. pssparser/share/include/pssp/ast/IAnnotation.h +68 -0
  287. pssparser/share/include/pssp/ast/IAnnotationDecl.h +51 -0
  288. pssparser/share/include/pssp/ast/IAnnotationParam.h +64 -0
  289. pssparser/share/include/pssp/ast/IAssocData.h +47 -0
  290. pssparser/share/include/pssp/ast/IComment.h +67 -0
  291. pssparser/share/include/pssp/ast/IComponent.h +54 -0
  292. pssparser/share/include/pssp/ast/IComponentBind.h +62 -0
  293. pssparser/share/include/pssp/ast/IConstraintBlock.h +58 -0
  294. pssparser/share/include/pssp/ast/IConstraintScope.h +54 -0
  295. pssparser/share/include/pssp/ast/IConstraintStmt.h +51 -0
  296. pssparser/share/include/pssp/ast/IConstraintStmtDefault.h +64 -0
  297. pssparser/share/include/pssp/ast/IConstraintStmtDefaultDisable.h +57 -0
  298. pssparser/share/include/pssp/ast/IConstraintStmtDist.h +64 -0
  299. pssparser/share/include/pssp/ast/IConstraintStmtExpr.h +57 -0
  300. pssparser/share/include/pssp/ast/IConstraintStmtField.h +64 -0
  301. pssparser/share/include/pssp/ast/IConstraintStmtForall.h +78 -0
  302. pssparser/share/include/pssp/ast/IConstraintStmtForeach.h +75 -0
  303. pssparser/share/include/pssp/ast/IConstraintStmtIf.h +68 -0
  304. pssparser/share/include/pssp/ast/IConstraintStmtImplication.h +57 -0
  305. pssparser/share/include/pssp/ast/IConstraintStmtSoft.h +57 -0
  306. pssparser/share/include/pssp/ast/IConstraintStmtUnique.h +61 -0
  307. pssparser/share/include/pssp/ast/IConstraintSymbolScope.h +57 -0
  308. pssparser/share/include/pssp/ast/ICoverStmtInline.h +54 -0
  309. pssparser/share/include/pssp/ast/ICoverStmtReference.h +57 -0
  310. pssparser/share/include/pssp/ast/ICovergroup.h +64 -0
  311. pssparser/share/include/pssp/ast/ICovergroupCoverpoint.h +57 -0
  312. pssparser/share/include/pssp/ast/ICovergroupCross.h +57 -0
  313. pssparser/share/include/pssp/ast/IDataType.h +51 -0
  314. pssparser/share/include/pssp/ast/IDataTypeBool.h +51 -0
  315. pssparser/share/include/pssp/ast/IDataTypeChandle.h +51 -0
  316. pssparser/share/include/pssp/ast/IDataTypeEnum.h +64 -0
  317. pssparser/share/include/pssp/ast/IDataTypeFloat.h +54 -0
  318. pssparser/share/include/pssp/ast/IDataTypeInt.h +68 -0
  319. pssparser/share/include/pssp/ast/IDataTypePyObj.h +51 -0
  320. pssparser/share/include/pssp/ast/IDataTypeRef.h +57 -0
  321. pssparser/share/include/pssp/ast/IDataTypeString.h +58 -0
  322. pssparser/share/include/pssp/ast/IDataTypeUserDefined.h +61 -0
  323. pssparser/share/include/pssp/ast/IDistItem.h +64 -0
  324. pssparser/share/include/pssp/ast/IDistWeight.h +61 -0
  325. pssparser/share/include/pssp/ast/IEnumDecl.h +64 -0
  326. pssparser/share/include/pssp/ast/IEnumItem.h +64 -0
  327. pssparser/share/include/pssp/ast/IExecBlock.h +55 -0
  328. pssparser/share/include/pssp/ast/IExecBlockTag.h +64 -0
  329. pssparser/share/include/pssp/ast/IExecScope.h +51 -0
  330. pssparser/share/include/pssp/ast/IExecStmt.h +57 -0
  331. pssparser/share/include/pssp/ast/IExecTargetTemplateBlock.h +85 -0
  332. pssparser/share/include/pssp/ast/IExportFunction.h +62 -0
  333. pssparser/share/include/pssp/ast/IExpr.h +47 -0
  334. pssparser/share/include/pssp/ast/IExprAggrEmpty.h +51 -0
  335. pssparser/share/include/pssp/ast/IExprAggrList.h +57 -0
  336. pssparser/share/include/pssp/ast/IExprAggrLiteral.h +51 -0
  337. pssparser/share/include/pssp/ast/IExprAggrMap.h +57 -0
  338. pssparser/share/include/pssp/ast/IExprAggrMapElem.h +57 -0
  339. pssparser/share/include/pssp/ast/IExprAggrStruct.h +57 -0
  340. pssparser/share/include/pssp/ast/IExprAggrStructElem.h +64 -0
  341. pssparser/share/include/pssp/ast/IExprBin.h +63 -0
  342. pssparser/share/include/pssp/ast/IExprBitSlice.h +58 -0
  343. pssparser/share/include/pssp/ast/IExprBool.h +54 -0
  344. pssparser/share/include/pssp/ast/IExprCast.h +61 -0
  345. pssparser/share/include/pssp/ast/IExprCompileHas.h +57 -0
  346. pssparser/share/include/pssp/ast/IExprCond.h +62 -0
  347. pssparser/share/include/pssp/ast/IExprDomainOpenRangeList.h +57 -0
  348. pssparser/share/include/pssp/ast/IExprDomainOpenRangeValue.h +62 -0
  349. pssparser/share/include/pssp/ast/IExprFloatLiteral.h +62 -0
  350. pssparser/share/include/pssp/ast/IExprHierarchicalId.h +57 -0
  351. pssparser/share/include/pssp/ast/IExprId.h +63 -0
  352. pssparser/share/include/pssp/ast/IExprIn.h +65 -0
  353. pssparser/share/include/pssp/ast/IExprListLiteral.h +54 -0
  354. pssparser/share/include/pssp/ast/IExprMemberPathElem.h +81 -0
  355. pssparser/share/include/pssp/ast/IExprNull.h +51 -0
  356. pssparser/share/include/pssp/ast/IExprNumber.h +51 -0
  357. pssparser/share/include/pssp/ast/IExprOpenRangeList.h +57 -0
  358. pssparser/share/include/pssp/ast/IExprOpenRangeValue.h +58 -0
  359. pssparser/share/include/pssp/ast/IExprRefPath.h +57 -0
  360. pssparser/share/include/pssp/ast/IExprRefPathContext.h +68 -0
  361. pssparser/share/include/pssp/ast/IExprRefPathElem.h +51 -0
  362. pssparser/share/include/pssp/ast/IExprRefPathId.h +64 -0
  363. pssparser/share/include/pssp/ast/IExprRefPathStatic.h +68 -0
  364. pssparser/share/include/pssp/ast/IExprRefPathStaticFunc.h +57 -0
  365. pssparser/share/include/pssp/ast/IExprRefPathStaticRooted.h +71 -0
  366. pssparser/share/include/pssp/ast/IExprRefPathSuper.h +51 -0
  367. pssparser/share/include/pssp/ast/IExprSignedNumber.h +62 -0
  368. pssparser/share/include/pssp/ast/IExprSliceRange.h +58 -0
  369. pssparser/share/include/pssp/ast/IExprStaticRefPath.h +68 -0
  370. pssparser/share/include/pssp/ast/IExprString.h +58 -0
  371. pssparser/share/include/pssp/ast/IExprStructLiteral.h +57 -0
  372. pssparser/share/include/pssp/ast/IExprStructLiteralItem.h +61 -0
  373. pssparser/share/include/pssp/ast/IExprSubscript.h +58 -0
  374. pssparser/share/include/pssp/ast/IExprSubstring.h +62 -0
  375. pssparser/share/include/pssp/ast/IExprTemplateString.h +57 -0
  376. pssparser/share/include/pssp/ast/IExprUnary.h +59 -0
  377. pssparser/share/include/pssp/ast/IExprUnsignedNumber.h +62 -0
  378. pssparser/share/include/pssp/ast/IExtendEnum.h +64 -0
  379. pssparser/share/include/pssp/ast/IExtendType.h +73 -0
  380. pssparser/share/include/pssp/ast/IFactory.h +696 -0
  381. pssparser/share/include/pssp/ast/IField.h +69 -0
  382. pssparser/share/include/pssp/ast/IFieldClaim.h +61 -0
  383. pssparser/share/include/pssp/ast/IFieldCompRef.h +57 -0
  384. pssparser/share/include/pssp/ast/IFieldPool.h +64 -0
  385. pssparser/share/include/pssp/ast/IFieldRef.h +61 -0
  386. pssparser/share/include/pssp/ast/IFunctionDefinition.h +69 -0
  387. pssparser/share/include/pssp/ast/IFunctionImport.h +59 -0
  388. pssparser/share/include/pssp/ast/IFunctionImportProto.h +57 -0
  389. pssparser/share/include/pssp/ast/IFunctionImportType.h +57 -0
  390. pssparser/share/include/pssp/ast/IFunctionParamDecl.h +85 -0
  391. pssparser/share/include/pssp/ast/IFunctionPrototype.h +80 -0
  392. pssparser/share/include/pssp/ast/IGenericConstraintDeclBool.h +61 -0
  393. pssparser/share/include/pssp/ast/IGenericConstraintDeclValue.h +86 -0
  394. pssparser/share/include/pssp/ast/IGenericConstraintParam.h +72 -0
  395. pssparser/share/include/pssp/ast/IGlobalScope.h +58 -0
  396. pssparser/share/include/pssp/ast/IMethodParameterList.h +54 -0
  397. pssparser/share/include/pssp/ast/IMonitor.h +54 -0
  398. pssparser/share/include/pssp/ast/IMonitorActivityActionTraversal.h +64 -0
  399. pssparser/share/include/pssp/ast/IMonitorActivityConcat.h +58 -0
  400. pssparser/share/include/pssp/ast/IMonitorActivityDecl.h +51 -0
  401. pssparser/share/include/pssp/ast/IMonitorActivityEventually.h +61 -0
  402. pssparser/share/include/pssp/ast/IMonitorActivityIfElse.h +65 -0
  403. pssparser/share/include/pssp/ast/IMonitorActivityMatch.h +64 -0
  404. pssparser/share/include/pssp/ast/IMonitorActivityMatchChoice.h +64 -0
  405. pssparser/share/include/pssp/ast/IMonitorActivityMonitorTraversal.h +64 -0
  406. pssparser/share/include/pssp/ast/IMonitorActivityOverlap.h +58 -0
  407. pssparser/share/include/pssp/ast/IMonitorActivityRepeatCount.h +71 -0
  408. pssparser/share/include/pssp/ast/IMonitorActivityRepeatWhile.h +64 -0
  409. pssparser/share/include/pssp/ast/IMonitorActivitySchedule.h +57 -0
  410. pssparser/share/include/pssp/ast/IMonitorActivitySelect.h +64 -0
  411. pssparser/share/include/pssp/ast/IMonitorActivitySelectBranch.h +60 -0
  412. pssparser/share/include/pssp/ast/IMonitorActivitySequence.h +57 -0
  413. pssparser/share/include/pssp/ast/IMonitorActivityStmt.h +51 -0
  414. pssparser/share/include/pssp/ast/IMonitorConstraint.h +57 -0
  415. pssparser/share/include/pssp/ast/INamedScope.h +57 -0
  416. pssparser/share/include/pssp/ast/INamedScopeChild.h +57 -0
  417. pssparser/share/include/pssp/ast/IPackageImportStmt.h +68 -0
  418. pssparser/share/include/pssp/ast/IPackageScope.h +64 -0
  419. pssparser/share/include/pssp/ast/IProceduralStmtAssignment.h +66 -0
  420. pssparser/share/include/pssp/ast/IProceduralStmtBody.h +57 -0
  421. pssparser/share/include/pssp/ast/IProceduralStmtBreak.h +51 -0
  422. pssparser/share/include/pssp/ast/IProceduralStmtContinue.h +51 -0
  423. pssparser/share/include/pssp/ast/IProceduralStmtDataDeclaration.h +71 -0
  424. pssparser/share/include/pssp/ast/IProceduralStmtExpr.h +57 -0
  425. pssparser/share/include/pssp/ast/IProceduralStmtForeach.h +68 -0
  426. pssparser/share/include/pssp/ast/IProceduralStmtFunctionCall.h +64 -0
  427. pssparser/share/include/pssp/ast/IProceduralStmtIfClause.h +61 -0
  428. pssparser/share/include/pssp/ast/IProceduralStmtIfElse.h +64 -0
  429. pssparser/share/include/pssp/ast/IProceduralStmtMatch.h +64 -0
  430. pssparser/share/include/pssp/ast/IProceduralStmtMatchChoice.h +68 -0
  431. pssparser/share/include/pssp/ast/IProceduralStmtRandomize.h +64 -0
  432. pssparser/share/include/pssp/ast/IProceduralStmtRepeat.h +64 -0
  433. pssparser/share/include/pssp/ast/IProceduralStmtRepeatWhile.h +57 -0
  434. pssparser/share/include/pssp/ast/IProceduralStmtReturn.h +57 -0
  435. pssparser/share/include/pssp/ast/IProceduralStmtSuper.h +51 -0
  436. pssparser/share/include/pssp/ast/IProceduralStmtSymbolBodyScope.h +57 -0
  437. pssparser/share/include/pssp/ast/IProceduralStmtWhile.h +57 -0
  438. pssparser/share/include/pssp/ast/IProceduralStmtYield.h +51 -0
  439. pssparser/share/include/pssp/ast/IPyImportFromStmt.h +61 -0
  440. pssparser/share/include/pssp/ast/IPyImportStmt.h +61 -0
  441. pssparser/share/include/pssp/ast/IRefExpr.h +47 -0
  442. pssparser/share/include/pssp/ast/IRefExprScopeIndex.h +58 -0
  443. pssparser/share/include/pssp/ast/IRefExprTypeScopeContext.h +58 -0
  444. pssparser/share/include/pssp/ast/IRefExprTypeScopeGlobal.h +54 -0
  445. pssparser/share/include/pssp/ast/IRootSymbolScope.h +73 -0
  446. pssparser/share/include/pssp/ast/IScope.h +54 -0
  447. pssparser/share/include/pssp/ast/IScopeChild.h +108 -0
  448. pssparser/share/include/pssp/ast/IScopeChildRef.h +54 -0
  449. pssparser/share/include/pssp/ast/IStruct.h +55 -0
  450. pssparser/share/include/pssp/ast/ISymbolChild.h +61 -0
  451. pssparser/share/include/pssp/ast/ISymbolChildrenScope.h +65 -0
  452. pssparser/share/include/pssp/ast/ISymbolEnumScope.h +51 -0
  453. pssparser/share/include/pssp/ast/ISymbolExtendScope.h +51 -0
  454. pssparser/share/include/pssp/ast/ISymbolFunctionScope.h +82 -0
  455. pssparser/share/include/pssp/ast/ISymbolImportSpec.h +60 -0
  456. pssparser/share/include/pssp/ast/ISymbolRefPath.h +55 -0
  457. pssparser/share/include/pssp/ast/ISymbolScope.h +69 -0
  458. pssparser/share/include/pssp/ast/ISymbolScopeRef.h +54 -0
  459. pssparser/share/include/pssp/ast/ISymbolTypeScope.h +61 -0
  460. pssparser/share/include/pssp/ast/ITargetTemplateFunction.h +76 -0
  461. pssparser/share/include/pssp/ast/ITemplateAssign.h +64 -0
  462. pssparser/share/include/pssp/ast/ITemplateBlock.h +54 -0
  463. pssparser/share/include/pssp/ast/ITemplateCategoryTypeParamDecl.h +69 -0
  464. pssparser/share/include/pssp/ast/ITemplateComment.h +58 -0
  465. pssparser/share/include/pssp/ast/ITemplateElem.h +62 -0
  466. pssparser/share/include/pssp/ast/ITemplateExpr.h +57 -0
  467. pssparser/share/include/pssp/ast/ITemplateForeach.h +68 -0
  468. pssparser/share/include/pssp/ast/ITemplateGenericTypeParamDecl.h +57 -0
  469. pssparser/share/include/pssp/ast/ITemplateIf.h +57 -0
  470. pssparser/share/include/pssp/ast/ITemplateIfClause.h +57 -0
  471. pssparser/share/include/pssp/ast/ITemplateParamDecl.h +57 -0
  472. pssparser/share/include/pssp/ast/ITemplateParamDeclList.h +57 -0
  473. pssparser/share/include/pssp/ast/ITemplateParamExprValue.h +57 -0
  474. pssparser/share/include/pssp/ast/ITemplateParamTypeValue.h +57 -0
  475. pssparser/share/include/pssp/ast/ITemplateParamValue.h +47 -0
  476. pssparser/share/include/pssp/ast/ITemplateParamValueList.h +53 -0
  477. pssparser/share/include/pssp/ast/ITemplateRepeat.h +64 -0
  478. pssparser/share/include/pssp/ast/ITemplateString.h +65 -0
  479. pssparser/share/include/pssp/ast/ITemplateText.h +54 -0
  480. pssparser/share/include/pssp/ast/ITemplateValueParamDecl.h +64 -0
  481. pssparser/share/include/pssp/ast/ITemplateVarDecl.h +57 -0
  482. pssparser/share/include/pssp/ast/ITypeIdentifier.h +64 -0
  483. pssparser/share/include/pssp/ast/ITypeIdentifierElem.h +64 -0
  484. pssparser/share/include/pssp/ast/ITypeScope.h +68 -0
  485. pssparser/share/include/pssp/ast/ITypedefDeclaration.h +64 -0
  486. pssparser/share/include/pssp/ast/IVisitor.h +957 -0
  487. pssparser/share/include/pssp/ast/Location.h +45 -0
  488. pssparser/share/include/pssp/ast/ParamDir.h +36 -0
  489. pssparser/share/include/pssp/ast/PlatQual.h +35 -0
  490. pssparser/share/include/pssp/ast/StringMethodId.h +41 -0
  491. pssparser/share/include/pssp/ast/StructKind.h +37 -0
  492. pssparser/share/include/pssp/ast/SymbolRefPathElem.h +44 -0
  493. pssparser/share/include/pssp/ast/SymbolRefPathElemKind.h +39 -0
  494. pssparser/share/include/pssp/ast/TypeCategory.h +41 -0
  495. pssparser/share/include/pssp/ast/impl/UP.h +47 -0
  496. pssparser/share/include/pssp/ast/impl/VisitorBase.h +2178 -0
  497. pssparser/share/include/pssp/impl/BuiltinCollectionUtil.h +99 -0
  498. pssparser/share/include/pssp/impl/ISymbol.h +45 -0
  499. pssparser/share/include/pssp/impl/Loader.h +87 -0
  500. pssparser/share/include/pssp/impl/NameResolverClientBase.h +41 -0
  501. pssparser/share/include/pssp/impl/ScopeUtil.h +264 -0
  502. pssparser/share/include/pssp/impl/TaskClearLinks.h +91 -0
  503. pssparser/share/include/pssp/impl/TaskCloneSymbolScope.h +258 -0
  504. pssparser/share/include/pssp/impl/TaskComputeTypePackedSize.h +142 -0
  505. pssparser/share/include/pssp/impl/TaskCopyAst.h +2011 -0
  506. pssparser/share/include/pssp/impl/TaskEvalExpr.h +281 -0
  507. pssparser/share/include/pssp/impl/TaskGetAstRoot.h +85 -0
  508. pssparser/share/include/pssp/impl/TaskGetCollectionElemType.h +149 -0
  509. pssparser/share/include/pssp/impl/TaskGetElemSymbolScope.h +282 -0
  510. pssparser/share/include/pssp/impl/TaskGetFieldType.h +76 -0
  511. pssparser/share/include/pssp/impl/TaskGetName.h +116 -0
  512. pssparser/share/include/pssp/impl/TaskGetSubscriptSymbolScope.h +99 -0
  513. pssparser/share/include/pssp/impl/TaskGetSymbolRefPath.h +103 -0
  514. pssparser/share/include/pssp/impl/TaskGetSymbolRefPathKind.h +83 -0
  515. pssparser/share/include/pssp/impl/TaskGetTemplateParamDeclDefault.h +69 -0
  516. pssparser/share/include/pssp/impl/TaskIndexField.h +126 -0
  517. pssparser/share/include/pssp/impl/TaskIndexTemplateScope.h +144 -0
  518. pssparser/share/include/pssp/impl/TaskIsPyRef.h +130 -0
  519. pssparser/share/include/pssp/impl/TaskIsUnspecializedGenericType.h +65 -0
  520. pssparser/share/include/pssp/impl/TaskResolveExprRef.h +140 -0
  521. pssparser/share/include/pssp/impl/TaskResolveSymbolPathRef.h +486 -0
  522. pssparser/share/include/pssp/impl/TaskResolveSymbolPathRefResult.h +50 -0
  523. pssparser/share/include/pssp/impl/TaskResolveTypeRef.h +143 -0
  524. pssparser/share/include/pssp/impl/ValVisitorBase.h +60 -0
  525. pssparser/stdlib/addr_reg_pkg.pss +177 -0
  526. pssparser/stdlib/executor_pkg.pss +34 -0
  527. pssparser/stdlib/std_pkg.pss +55 -0
  528. pssparser/stdlib/sync_pkg.pss +23 -0
  529. pssparser/tokens.py +91 -0
  530. pssparser/tokens.pyi +58 -0
  531. pssparser/utils/__init__.py +3 -0
  532. pssparser/utils/list_iterator.py +41 -0
  533. pssparser/utils/symbol_children_scope_util.py +33 -0
  534. pssparser/utils/symbol_scope_util.py +57 -0
  535. pssparser/utils/symbol_type_scope_util.py +37 -0
  536. pssparser-3.1.1.dist-info/METADATA +19 -0
  537. pssparser-3.1.1.dist-info/RECORD +541 -0
  538. pssparser-3.1.1.dist-info/WHEEL +5 -0
  539. pssparser-3.1.1.dist-info/entry_points.txt +2 -0
  540. pssparser-3.1.1.dist-info/licenses/LICENSE +201 -0
  541. pssparser-3.1.1.dist-info/top_level.txt +1 -0
pssparser/__init__.py ADDED
@@ -0,0 +1,73 @@
1
+ def _add_dll_search_path():
2
+ """Make the native libraries shipped in this package loadable on Windows.
3
+
4
+ Python resolves a .pyd's own imports relative to the .pyd, but the
5
+ ctypes.cdll.LoadLibrary() call in core.pyx does not get that treatment:
6
+ it searches the default directories only, so pssparser.dll's dependency
7
+ on ast.dll would go unresolved.
8
+ """
9
+ import os
10
+ if os.name != "nt":
11
+ return
12
+ pkg_dir = os.path.dirname(os.path.abspath(__file__))
13
+ if hasattr(os, "add_dll_directory") and os.path.isdir(pkg_dir):
14
+ os.add_dll_directory(pkg_dir)
15
+
16
+
17
+ _add_dll_search_path()
18
+
19
+ from .parser import Parser, ParseException
20
+ from .__version__ import __version__, get_version
21
+
22
+ def get_deps():
23
+ return []
24
+
25
+ def get_libs():
26
+ return ["pssparser"]
27
+
28
+ def get_libdirs():
29
+ import os
30
+ pkg_dir = os.path.dirname(os.path.abspath(__file__))
31
+ return [pkg_dir]
32
+
33
+ def get_incdirs():
34
+ import os
35
+ pkg_dir = os.path.dirname(os.path.abspath(__file__))
36
+ if os.path.isdir(os.path.join(pkg_dir, "include")):
37
+ return [os.path.join(pkg_dir, "include")]
38
+ else:
39
+ root_dir = os.path.abspath(os.path.join(pkg_dir, "../.."))
40
+ return [os.path.join(root_dir, "src", "include")]
41
+
42
+
43
+ def get_stdlib_dir():
44
+ """Directory holding the standard-library ``.pss`` sources.
45
+
46
+ The parser compiles these in, so parsing never needs them. A tool that
47
+ *documents* or cross-references the core library does: it needs the source
48
+ text, and in an installed wheel there is nowhere else to look.
49
+
50
+ Mirrors :func:`get_incdirs`: the installed location first, the source tree
51
+ second.
52
+ """
53
+ import os
54
+ pkg_dir = os.path.dirname(os.path.abspath(__file__))
55
+ installed = os.path.join(pkg_dir, "stdlib")
56
+ if os.path.isdir(installed):
57
+ return installed
58
+ root_dir = os.path.abspath(os.path.join(pkg_dir, "../.."))
59
+ return os.path.join(root_dir, "src", "stdlib")
60
+
61
+
62
+ def get_stdlib_files():
63
+ """The standard-library ``.pss`` sources, sorted by name.
64
+
65
+ Returns an empty list when the directory is absent rather than raising, so
66
+ a caller can degrade to "no core-library reference" instead of failing.
67
+ """
68
+ import glob
69
+ import os
70
+ d = get_stdlib_dir()
71
+ if not os.path.isdir(d):
72
+ return []
73
+ return sorted(glob.glob(os.path.join(d, "*.pss")))
pssparser/__main__.py ADDED
@@ -0,0 +1,5 @@
1
+ """Entry point for ``python -m pssparser``."""
2
+ import sys
3
+ from pssparser.cli.app import main
4
+
5
+ sys.exit(main())
@@ -0,0 +1,34 @@
1
+ import os
2
+
3
+ BASE = "3.1.1"
4
+ SUFFIX = ""
5
+
6
+ __version__ = (BASE, SUFFIX)
7
+
8
+ # Used by setup.py dynamic versioning
9
+ _pkg_version = BASE + SUFFIX
10
+
11
+
12
+ def get_version():
13
+ """Return the full version string, appending git describe when in a source tree."""
14
+ base, suffix = __version__
15
+ version = base + suffix
16
+
17
+ src_dir = os.path.dirname(os.path.dirname(os.path.dirname(
18
+ os.path.abspath(__file__))))
19
+ git_dir = os.path.join(src_dir, ".git")
20
+
21
+ if os.path.isdir(git_dir):
22
+ try:
23
+ import subprocess
24
+ out = subprocess.check_output(
25
+ ["git", "describe", "--tags", "--dirty", "--always"],
26
+ cwd=src_dir,
27
+ stderr=subprocess.DEVNULL,
28
+ ).decode().strip()
29
+ if out != base:
30
+ return "%s+%s" % (version, out)
31
+ except Exception:
32
+ pass
33
+
34
+ return version
Binary file
pssparser/ast.dll ADDED
Binary file
pssparser/ast.lib ADDED
Binary file