package diffast-langs-verilog-parsing

  1. Overview
  2. Docs
type t =
  1. | Dummy
  2. | Error
  3. | Empty
  4. | SourceText
  5. | LibraryText
  6. | CompilerDirective of Labels.CompilerDirective.t
  7. | ModuleDeclaration of Labels.ModuleSpec.t * Common.identifier
  8. | UdpDeclaration of Common.identifier
  9. | NetDeclaration of Common.identifier list
  10. | BindDirective of Common.identifier
  11. | Expr of Labels.Expression.t
  12. | Stmt of Labels.Statement.t
  13. | NetType of Labels.NetType.t
  14. | LocalParameterDeclaration of Common.identifier list
  15. | ParameterDeclaration of Common.identifier list
  16. | ParameterPortDeclaration
  17. | ModuleBody
  18. | Instantiation of Common.identifier
  19. | GateInstantiation of Labels.Gate.t
  20. | ContinuousAssign
  21. | Assign
  22. | ConcurrentAssertionItem
  23. | DeferredImmediateAssertionItem
  24. | PpIdentifier of Common.identifier
  25. | PackedDimension
  26. | ParamAssignment of Common.identifier
  27. | DefparamAssignment
  28. | IdSelect of Common.identifier
  29. | Select
  30. | Range
  31. | RangePlus
  32. | RangeMinus
  33. | RangeForeach
  34. | Root
  35. | This
  36. | Super
  37. | Cellpin of Common.identifier
  38. | CellpinStar
  39. | CellpinAnon
  40. | DelayValue of Common.identifier
  41. | PackageScope of Common.identifier
  42. | PackageScopeUnit
  43. | PackageScopeLocal
  44. | PackageImport of Common.identifier
  45. | PackageImportAny
  46. | LifetimeStatic
  47. | LifetimeAutomatic
  48. | EndLabel of Common.identifier
  49. | EndLabelNew
  50. | ClassType of Common.identifier
  51. | DataType of Labels.DataType.t
  52. | ImplicitDataType
  53. | VarDeclAssignments
  54. | Signed
  55. | Unsigned
  56. | ArgsDotted of Common.identifier
  57. | Tagged
  58. | StructUnionBody
  59. | StructUnionMember
  60. | ClassScopeId of Common.identifier
  61. | Void
  62. | EnumNameDeclaration of Common.identifier
  63. | EnumBody
  64. | IdClassSel of Common.identifier
  65. | Variable of Common.identifier
  66. | Extern
  67. | PackageImportDeclaration
  68. | PackageImportItem of Common.identifier
  69. | Packed
  70. | ParameterValueAssignment
  71. | Ports
  72. | PortsStar
  73. | BitSelect
  74. | VariableDeclAssignment of Common.identifier
  75. | DynamicArrayNew
  76. | VariableDimension
  77. | VariableDimensionStar
  78. | GenItemBegin
  79. | GenBlockId of Common.identifier
  80. | GenerateRegion
  81. | Scalared
  82. | Vectored
  83. | DelayControl
  84. | NetSig of Common.identifier
  85. | ParameterOverride
  86. | PortDeclaration
  87. | PortDirection of Labels.PortDirection.t
  88. | Strength of Labels.Strength.t
  89. | StrengthSupply0
  90. | StrengthSupply1
  91. | StrengthSpec
  92. | VarDataType
  93. | Port of Common.identifier
  94. | InterfacePort of Common.identifier
  95. | InterfacePortInterface
  96. | ModportIdentifier of Common.identifier
  97. | PortMulti
  98. | ExprScope
  99. | ExprScopeThis
  100. | ExprScopeSuper
  101. | ExprScopeDot
  102. | ExprScopeDotSuper
  103. | CondPredicate
  104. | CondPattern
  105. | Dist
  106. | DistItem
  107. | DistWeight
  108. | DistWeightRange
  109. | ArrayRange
  110. | ArrayRangePlus
  111. | ArrayRangeMinus
  112. | CastingTypeSimple
  113. | CastingTypeSigned
  114. | CastingTypeUnsigned
  115. | CastingTypeString
  116. | CastingTypeConst
  117. | ValueRange
  118. | Pattern
  119. | PatternId of Common.identifier
  120. | PatternStar
  121. | PatternTagged of Common.identifier
  122. | EventControl
  123. | EventControlStar
  124. | EventControlParenStar
  125. | EventControlRepeat
  126. | EvExpr of Labels.EventExpression.t
  127. | CaseItem
  128. | CaseItemDefault
  129. | CaseInsideItem
  130. | CaseInsideItemDefault
  131. | CaseItems
  132. | CaseItemsMatches
  133. | CaseItemsInside
  134. | With
  135. | Args
  136. | ConstraintBlock
  137. | ForInit
  138. | ForInitItemDT of Common.identifier
  139. | ForInitItemLval
  140. | StreamingConcat
  141. | OrderRL
  142. | OrderLR
  143. | StreamConcat
  144. | Solve
  145. | SolveBefore
  146. | ActionBlock
  147. | CycleDelay of string
  148. | CycleDelayId of Common.identifier
  149. | CycleDelayParen
  150. | Priority
  151. | Unique
  152. | Unique0
  153. | InstRange
  154. | InstName of Common.identifier
  155. | PExpr of Labels.PropertyExpression.t
  156. | ClockingEvent of Common.identifier
  157. | ClockingEventParen
  158. | PropertyCase
  159. | PropertyCaseDefault
  160. | DisableIff
  161. | CycleDelayRange of string
  162. | CycleDelayRangeId of Common.identifier
  163. | CycleDelayRangeParen
  164. | CycleDelayRangeBracket
  165. | CycleDelayRangeBracketStar
  166. | CycleDelayRangeBracketPlus
  167. | SExpr of Labels.SequenceExpression.t
  168. | ConsecutiveRepetition
  169. | NonconsecutiveRepetition
  170. | GotoRepetition
  171. | NetAlias
  172. | InitialConstruct
  173. | FinalConstruct
  174. | AlwaysConstruct of Labels.AlwaysSpec.t
  175. | ConcurrentAssertionItemLabeled of Common.identifier
  176. | ConcurrentAssertionStmt of Labels.ConcurrentAssertion.t
  177. | DeferredImmediateAssertionItemLabeled of Common.identifier
  178. | DeferredImmediateAssertionStmt of Labels.DeferredImmediateAssertion.t
  179. | SimpleImmediateAssertionStmt of Labels.SimpleImmediateAssertion.t
  180. | CheckerInstantiation of Common.identifier
  181. | LoopGenerateConstruct
  182. | GenvarDeclaration of Common.identifier list
  183. | GenvarIterationAssign of Labels.AssignmentOperator.t * Common.identifier
  184. | GenvarIterationIncOrDec of Labels.IncOrDecOperator.t * Common.identifier
  185. | GenvarIdDecl of Common.identifier
  186. | GenvarInitId of Common.identifier
  187. | GenvarInit
  188. | SpecifyBlock
  189. | SpecparamDeclaration
  190. | SpecparamAssignmentId of Common.identifier
  191. | SpecparamAssignmentPulseControl of Common.identifier
  192. | PulsestyleDeclarationOnevent
  193. | PulsestyleDeclarationOndetect
  194. | ShowcancelledDeclaration
  195. | NoshowcancelledDeclaration
  196. | SpecifyTerminalDescriptor
  197. | InputOrOutputId of Common.identifier
  198. | InterfaceIdentifier of Common.identifier
  199. | ProgramDeclaration of Common.identifier
  200. | InterfaceDeclaration of Common.identifier
  201. | InterfaceDeclarationExtern of Common.identifier
  202. | TimeUnitsDeclaration
  203. | TimeUnit of string
  204. | Timeprecision of string
  205. | PackageDeclaration of Common.identifier
  206. | AnonymousProgram
  207. | AnonymousProgramItemEmpty
  208. | FunctionDeclaration of Common.identifier
  209. | FunctionPrototype of Common.identifier
  210. | FuncId of Common.identifier
  211. | FuncIdVoid of Common.identifier
  212. | FuncIdNew
  213. | TfIdScoped of Common.identifier
  214. | TaskDeclaration of Common.identifier
  215. | TaskPrototype of Common.identifier
  216. | ClassCtorPrototype
  217. | TfPortListPart
  218. | TfBody
  219. | TfPortDeclaration
  220. | TfPortItemAssignment of Common.identifier
  221. | TfPortItem
  222. | TfVariableIdentifier of Common.identifier
  223. | CheckerDeclaration of Common.identifier
  224. | PropertyDeclaration of Common.identifier
  225. | PropertyDeclBody
  226. | PropertyPortItem
  227. | PropertyPortItemDir
  228. | PropertyPortItemAssignment of Common.identifier
  229. | SequenceDeclaration of Common.identifier
  230. | SequenceDeclBody
  231. | LetDeclaration of Common.identifier
  232. | PropertyStatementSpec
  233. | AssertionVariableDeclaration
  234. | SequenceFormalTypeSequence
  235. | SequenceFormalTypeUntyped
  236. | DataDeclarationVar
  237. | Const
  238. | DataDeclarationVarClass
  239. | TypeDeclaration of Common.identifier
  240. | ScopedType of Common.identifier
  241. | TypeIdentifier of Common.identifier
  242. | TypeDeclEnum
  243. | TypeDeclStruct
  244. | TypeDeclUnion
  245. | TypeDeclClass
  246. | VirtualInterfaceDeclaration of Common.identifier
  247. | ModportDeclaration of Common.identifier list
  248. | ModportItem of Common.identifier
  249. | ModportSimplePortsDecl
  250. | ModportClockingDecl of Common.identifier
  251. | ModportTfPortsDeclImport
  252. | ModportTfPortsDeclExport
  253. | ModportSimplePort of Common.identifier
  254. | ModportSimplePortDot of Common.identifier
  255. | ModportTfPort of Common.identifier
  256. | CovergroupDeclaration of Common.identifier
  257. | Paren
  258. | CoverageOption of Common.identifier * Common.identifier
  259. | CoverPoint
  260. | CoverPointLabeled of Common.identifier
  261. | CoverCross
  262. | CoverCrossLabeled of Common.identifier
  263. | CrossItem of Common.identifier
  264. | Iff
  265. | BinsList
  266. | BinsEmpty
  267. | SelectBins
  268. | SelectBinsEmpty
  269. | Bins of Labels.BinsSpec.t * Common.identifier
  270. | BinsSelection of Labels.BinsSpec.t * Common.identifier
  271. | BinsExpressionVar of Common.identifier
  272. | BinsExpression of Common.identifier * Common.identifier
  273. | NBins
  274. | SelCondBinsof
  275. | SelExprNot
  276. | SelExprAnd
  277. | SelExprOr
  278. | SelExprParen
  279. | Intersect
  280. | Wildcard
  281. | TransSet
  282. | TransRangeList
  283. | RepeatRange
  284. | TransItem
  285. | TransRepetitionConsecutive
  286. | TransRepetitionNonconsecutive
  287. | TransRepetitionGoto
  288. | Default
  289. | DefaultSequence
  290. | OpenRangeList
  291. | CoverageEventWith of Common.identifier
  292. | CoverageEventBlockEvent
  293. | BlockEventExpression
  294. | BlockEventExpressionBegin
  295. | BlockEventExpressionEnd
  296. | HierarchicalBtfIdentifier of Common.identifier
  297. | PackageExportDeclarationStar
  298. | PackageExportDeclaration
  299. | DpiImport of string
  300. | DpiExportFunc of string * Common.identifier
  301. | DpiExportTask of string * Common.identifier
  302. | DpiImportLabel of Common.identifier
  303. | DpiTfImportPropertyContext
  304. | DpiTfImportPropertyPure
  305. | ExternConstraintDeclaration
  306. | Static
  307. | Virtual
  308. | ClassDeclaration of Common.identifier
  309. | ClassExtends
  310. | ClassItemEmpty
  311. | ClassMethod
  312. | Qualifier of Labels.Qualifier.t
  313. | ClassBody
  314. | ClassConstraint of Common.identifier
  315. | Pure
  316. | ClassProperty
  317. | PackageOrGenerateItemEmpty
  318. | Forkjoin
  319. | ExternTfDeclaration of Common.identifier
  320. | TimingCheck of Labels.TimingCheck.t
  321. | SystemTimingCheck
  322. | Notifier of Common.identifier
  323. | Delayed of Common.identifier
  324. | TimingCheckEvent
  325. | TimingCheckEventControlPosedge
  326. | TimingCheckEventControlNegedge
  327. | TimingCheckEventControl
  328. | EdgeDescriptor of string
  329. | OverloadDeclaration of Labels.OverloadOperator.t * Common.identifier
  330. | Params
  331. | ClockingDeclaration of Common.identifier
  332. | Global
  333. | ClockingBody
  334. | ClockingItemDefault
  335. | ClockingItem
  336. | DefaultSkewInput
  337. | DefaultSkewOutput
  338. | DefaultSkewInputOutput
  339. | ClockingDirectionInput
  340. | ClockingDirectionInputOutput
  341. | ClockingDirectionInout
  342. | ClockingSkewPosedge
  343. | ClockingSkewNegedge
  344. | ClockingSkewEdge
  345. | ClockingSkew
  346. | ClockingDeclAssign of Common.identifier
  347. | Production of Common.identifier
  348. | ProductionItem of Common.identifier
  349. | RsCodeBlock
  350. | RsRule
  351. | RsProductionList
  352. | RsProductionListRandJoin
  353. | WeightSpecInt of string
  354. | WeightSpecId
  355. | WeightSpec
  356. | RsProdIf
  357. | RsProdRepeat
  358. | RsProdCase
  359. | RsCaseItem
  360. | RsCaseItemDefault
  361. | CheckerOrGenerateItemEmpty
  362. | ConditionalGenerateConstructCase
  363. | ConditionalGenerateConstructIf
  364. | ElaborationSystemTask of Labels.SystemTask.t
  365. | CaseGenerateItem
  366. | CaseGenerateItemDefault
  367. | AssignmentPattern
  368. | AssignmentPatternExpr
  369. | PatternKey
  370. | PatternKeyDefault
  371. | PatternMember
  372. | SimplePathDeclaration
  373. | ParallelPathDescription
  374. | FullPathDescription
  375. | PathInputs
  376. | PathOutputs
  377. | PathDelayValue
  378. | PolarityPlus
  379. | PolarityMinus
  380. | EdgePosedge
  381. | EdgeNegedge
  382. | EdgeSensitivePathDeclaration
  383. | ParallelEdgeSensitivePathDescription
  384. | FullEdgeSensitivePathDescription
  385. | ParallelEdgeSensitivePathDescriptionSub
  386. | FullEdgeSensitivePathDescriptionSub
  387. | StateDependentPathDeclarationIf
  388. | StateDependentPathDeclarationIfnone
  389. | VariableLvalue
  390. | AttributeInstance
  391. | AttrSpec of Common.identifier
  392. | UdpPort of Common.identifier
  393. | UdpPortDeclaration
  394. | UdpOutputDeclaration of Common.identifier
  395. | UdpOutputDeclarationReg of Common.identifier
  396. | UdpInputDeclaration
  397. | UdpRegDeclaration of Common.identifier
  398. | SequentialBody
  399. | CombinationalBody
  400. | UdpInitialStmt of Common.identifier * string
  401. | SequentialEntry
  402. | EdgeIndicator
  403. | EdgeSymbol of string
  404. | LevelSymbol of string
  405. | OutputSymbol of string
  406. | CombinationalEntry
  407. | NextStateMinus
  408. | UdpPortsStar
  409. | UdpPorts
  410. | UdpPortDecls
  411. | UdpDeclarationPorts
  412. | AttributeInstances
  413. | ConfigDeclaration of Common.identifier
  414. | DesignStatement
  415. | CellId of Common.identifier
  416. | LibraryIdentifier of Common.identifier
  417. | LiblistClause
  418. | CellClause of Common.identifier
  419. | UseClause
  420. | ColonConfig
  421. | InstanceName
  422. | InstanceIdentifier of Common.identifier
  423. | TopModuleIdentifier of Common.identifier
  424. | InstClause
  425. | ConfigRuleStatementDefault
  426. | ConfigRuleStatement
  427. | LibraryDeclaration of Common.identifier
  428. | Incdir
  429. | FilePathSpec of string
  430. | IncludeStatement of string
  431. | PragmaExpression of Common.identifier
  432. | PragmaValueTuple
  433. | PragmaValueNum of string
  434. | PragmaValueStr of string
  435. | PragmaValueId of Common.identifier
  436. | PackageImportDecls
  437. | ParamPorts
  438. | Ranges
  439. | VariableDimensions
  440. | CaseConds
  441. | NetDeclAssignments of Common.identifier list
  442. | ParamAssignments of Common.identifier list
  443. | MacroExpr of string
  444. | MacroStmt of string
  445. | Var
val to_string : t -> string
val to_simple_string : t -> Common.identifier
val to_tag : ?strip:bool -> t -> string * (string * Common.identifier) list
val get_identifiers : t -> Common.identifier list
val get_identifier : t -> Common.identifier
val pexpr_to_stmt : t -> t
val expr_to_stmt : t -> t
val expr_of_integral_number : string -> t
val expr : Labels.Expression.t -> t
val expr_uo : Verilog_parsing__Labels.UnaryOperator.t -> t
val expr_bo : Verilog_parsing__Labels.BinaryOperator.t -> t
val expr_ao : Verilog_parsing__Labels.AssignmentOperator.t -> t
val ev_expr : Labels.EventExpression.t -> t
val stmt : Labels.Statement.t -> t
val stmt_ao : Verilog_parsing__Labels.AssignmentOperator.t -> t
val qualifier : Labels.Qualifier.t -> t
val timing_check : Labels.TimingCheck.t -> t
val data_type : Labels.DataType.t -> t
val net_type : Labels.NetType.t -> t
val compiler_directive : Labels.CompilerDirective.t -> t
val is_error : t -> bool
OCaml

Innovation. Community. Security.