@appthreat/atom 2.1.19 → 2.2.0
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.
- package/{plugins/composer/LICENSE → LICENSE} +6 -6
- package/README.md +2 -2
- package/index.js +4 -8
- package/package.json +20 -13
- package/packages/atom-parsetools/LICENSE +21 -0
- package/{astgen.js → packages/atom-parsetools/astgen.js} +1 -1
- package/packages/atom-parsetools/index.js +1 -0
- package/{phpastgen.js → packages/atom-parsetools/phpastgen.js} +1 -1
- package/{rbastgen.js → packages/atom-parsetools/rbastgen.js} +1 -1
- package/{scalasem.js → packages/atom-parsetools/scalasem.js} +1 -1
- package/plugins/bin/atom +1 -1
- package/plugins/bin/atom.bat +1 -1
- package/plugins/lib/io.appthreat.atom-2.2.0-classpath.jar +0 -0
- package/plugins/lib/{io.appthreat.atom-2.1.19.jar → io.appthreat.atom-2.2.0.jar} +0 -0
- package/plugins/lib/{io.appthreat.c2cpg_3-2.3.10.jar → io.appthreat.c2cpg_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.dataflowengineoss_3-2.3.10.jar → io.appthreat.dataflowengineoss_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.javasrc2cpg_3-2.3.10.jar → io.appthreat.javasrc2cpg_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.jimple2cpg_3-2.3.10.jar → io.appthreat.jimple2cpg_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.jssrc2cpg_3-2.3.10.jar → io.appthreat.jssrc2cpg_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.php2atom_3-2.3.10.jar → io.appthreat.php2atom_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.pysrc2cpg_3-2.3.10.jar → io.appthreat.pysrc2cpg_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.ruby2atom_3-2.3.10.jar → io.appthreat.ruby2atom_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.semanticcpg_3-2.3.10.jar → io.appthreat.semanticcpg_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.appthreat.x2cpg_3-2.3.10.jar → io.appthreat.x2cpg_3-2.4.1.jar} +0 -0
- package/plugins/lib/{io.circe.circe-core_3-0.14.12.jar → io.circe.circe-core_3-0.14.13.jar} +0 -0
- package/plugins/lib/{io.circe.circe-generic_3-0.14.12.jar → io.circe.circe-generic_3-0.14.13.jar} +0 -0
- package/plugins/lib/{io.circe.circe-jawn_3-0.14.12.jar → io.circe.circe-jawn_3-0.14.13.jar} +0 -0
- package/plugins/lib/{io.circe.circe-numbers_3-0.14.12.jar → io.circe.circe-numbers_3-0.14.13.jar} +0 -0
- package/plugins/lib/{io.circe.circe-parser_3-0.14.12.jar → io.circe.circe-parser_3-0.14.13.jar} +0 -0
- package/plugins/lib/{org.scala-lang.scala3-library_3-3.6.2.jar → org.scala-lang.scala3-library_3-3.6.4.jar} +0 -0
- package/plugins/autoload.php +0 -22
- package/plugins/bin/bundler +0 -14
- package/plugins/bin/php-parse +0 -119
- package/plugins/bin/ruby_ast_gen +0 -14
- package/plugins/composer/ClassLoader.php +0 -579
- package/plugins/composer/InstalledVersions.php +0 -396
- package/plugins/composer/autoload_classmap.php +0 -260
- package/plugins/composer/autoload_namespaces.php +0 -9
- package/plugins/composer/autoload_psr4.php +0 -10
- package/plugins/composer/autoload_real.php +0 -36
- package/plugins/composer/autoload_static.php +0 -286
- package/plugins/composer/installed.json +0 -65
- package/plugins/composer/installed.php +0 -32
- package/plugins/lib/io.appthreat.atom-2.1.19-classpath.jar +0 -0
- package/plugins/nikic/php-parser/LICENSE +0 -29
- package/plugins/nikic/php-parser/README.md +0 -225
- package/plugins/nikic/php-parser/bin/php-parse +0 -205
- package/plugins/nikic/php-parser/composer.json +0 -41
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/ClassConst.php +0 -148
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Class_.php +0 -146
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Declaration.php +0 -43
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/EnumCase.php +0 -85
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Enum_.php +0 -117
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/FunctionLike.php +0 -73
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Function_.php +0 -67
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Interface_.php +0 -93
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Method.php +0 -146
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php +0 -45
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Param.php +0 -168
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Property.php +0 -161
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/TraitUse.php +0 -64
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/TraitUseAdaptation.php +0 -148
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Trait_.php +0 -78
- package/plugins/nikic/php-parser/lib/PhpParser/Builder/Use_.php +0 -49
- package/plugins/nikic/php-parser/lib/PhpParser/Builder.php +0 -13
- package/plugins/nikic/php-parser/lib/PhpParser/BuilderFactory.php +0 -399
- package/plugins/nikic/php-parser/lib/PhpParser/BuilderHelpers.php +0 -335
- package/plugins/nikic/php-parser/lib/PhpParser/Comment/Doc.php +0 -7
- package/plugins/nikic/php-parser/lib/PhpParser/Comment.php +0 -239
- package/plugins/nikic/php-parser/lib/PhpParser/ConstExprEvaluationException.php +0 -6
- package/plugins/nikic/php-parser/lib/PhpParser/ConstExprEvaluator.php +0 -229
- package/plugins/nikic/php-parser/lib/PhpParser/Error.php +0 -180
- package/plugins/nikic/php-parser/lib/PhpParser/ErrorHandler/Collecting.php +0 -46
- package/plugins/nikic/php-parser/lib/PhpParser/ErrorHandler/Throwing.php +0 -18
- package/plugins/nikic/php-parser/lib/PhpParser/ErrorHandler.php +0 -13
- package/plugins/nikic/php-parser/lib/PhpParser/Internal/DiffElem.php +0 -27
- package/plugins/nikic/php-parser/lib/PhpParser/Internal/Differ.php +0 -164
- package/plugins/nikic/php-parser/lib/PhpParser/Internal/PrintableNewAnonClassNode.php +0 -64
- package/plugins/nikic/php-parser/lib/PhpParser/Internal/TokenStream.php +0 -286
- package/plugins/nikic/php-parser/lib/PhpParser/JsonDecoder.php +0 -103
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php +0 -251
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/AttributeEmulator.php +0 -56
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/CoaleseEqualTokenEmulator.php +0 -47
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/EnumTokenEmulator.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ExplicitOctalEmulator.php +0 -44
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/FlexibleDocStringEmulator.php +0 -76
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/FnTokenEmulator.php +0 -23
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/KeywordEmulator.php +0 -62
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/MatchTokenEmulator.php +0 -23
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/NullsafeTokenEmulator.php +0 -67
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/NumericLiteralSeparatorEmulator.php +0 -105
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ReadonlyFunctionTokenEmulator.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ReadonlyTokenEmulator.php +0 -36
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/ReverseEmulator.php +0 -36
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer/TokenEmulator/TokenEmulator.php +0 -25
- package/plugins/nikic/php-parser/lib/PhpParser/Lexer.php +0 -560
- package/plugins/nikic/php-parser/lib/PhpParser/NameContext.php +0 -285
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Arg.php +0 -46
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Attribute.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/AttributeGroup.php +0 -29
- package/plugins/nikic/php-parser/lib/PhpParser/Node/ComplexType.php +0 -14
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Const_.php +0 -37
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayDimFetch.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php +0 -41
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Array_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php +0 -79
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseAnd.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseOr.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/BitwiseXor.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Coalesce.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Concat.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Div.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Minus.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mod.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mul.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Plus.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Pow.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftLeft.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/ShiftRight.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/AssignRef.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseAnd.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseOr.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseXor.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanAnd.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanOr.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Coalesce.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Concat.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Div.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Equal.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Greater.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/GreaterOrEqual.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Identical.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalAnd.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalOr.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/LogicalXor.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Minus.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mod.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mul.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotEqual.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/NotIdentical.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Plus.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Pow.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftLeft.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/ShiftRight.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Smaller.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/SmallerOrEqual.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Spaceship.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp.php +0 -40
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BitwiseNot.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/CallLike.php +0 -39
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Array_.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Bool_.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Double.php +0 -17
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Int_.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Object_.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/String_.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Unset_.php +0 -12
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Cast.php +0 -26
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ClassConstFetch.php +0 -36
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php +0 -79
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ConstFetch.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Error.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ErrorSuppress.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Eval_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Exit_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php +0 -39
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Include_.php +0 -39
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Instanceof_.php +0 -35
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Isset_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Match_.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php +0 -45
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php +0 -41
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/NullsafeMethodCall.php +0 -45
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/NullsafePropertyFetch.php +0 -35
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/PropertyFetch.php +0 -35
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php +0 -46
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/StaticPropertyFetch.php +0 -36
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php +0 -38
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Throw_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryPlus.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/YieldFrom.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr/Yield_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Expr.php +0 -9
- package/plugins/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php +0 -43
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Identifier.php +0 -75
- package/plugins/nikic/php-parser/lib/PhpParser/Node/IntersectionType.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/MatchArm.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Name/FullyQualified.php +0 -50
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Name/Relative.php +0 -50
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Name.php +0 -254
- package/plugins/nikic/php-parser/lib/PhpParser/Node/NullableType.php +0 -28
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Param.php +0 -60
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/DNumber.php +0 -77
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/EncapsedStringPart.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php +0 -80
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Class_.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Dir.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/File.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Function_.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Line.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Method.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Namespace_.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Trait_.php +0 -16
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php +0 -28
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar/String_.php +0 -157
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Scalar.php +0 -7
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Break_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Case_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Catch_.php +0 -41
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassConst.php +0 -85
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassLike.php +0 -109
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassMethod.php +0 -161
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Class_.php +0 -137
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Const_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Continue_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/DeclareDeclare.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Declare_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Do_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Echo_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/ElseIf_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Else_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/EnumCase.php +0 -37
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Enum_.php +0 -40
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Expression.php +0 -33
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Finally_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/For_.php +0 -43
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Foreach_.php +0 -47
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Function_.php +0 -77
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Global_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Goto_.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/GroupUse.php +0 -39
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/HaltCompiler.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/If_.php +0 -43
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/InlineHTML.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Interface_.php +0 -37
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Label.php +0 -31
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Namespace_.php +0 -38
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Nop.php +0 -17
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Property.php +0 -91
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/PropertyProperty.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Return_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/StaticVar.php +0 -37
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Static_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Switch_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Throw_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUse.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php +0 -38
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Precedence.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation.php +0 -13
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Trait_.php +0 -32
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/TryCatch.php +0 -38
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Unset_.php +0 -30
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/UseUse.php +0 -52
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/Use_.php +0 -47
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php +0 -34
- package/plugins/nikic/php-parser/lib/PhpParser/Node/Stmt.php +0 -9
- package/plugins/nikic/php-parser/lib/PhpParser/Node/UnionType.php +0 -28
- package/plugins/nikic/php-parser/lib/PhpParser/Node/VarLikeIdentifier.php +0 -17
- package/plugins/nikic/php-parser/lib/PhpParser/Node/VariadicPlaceholder.php +0 -27
- package/plugins/nikic/php-parser/lib/PhpParser/Node.php +0 -151
- package/plugins/nikic/php-parser/lib/PhpParser/NodeAbstract.php +0 -178
- package/plugins/nikic/php-parser/lib/PhpParser/NodeDumper.php +0 -206
- package/plugins/nikic/php-parser/lib/PhpParser/NodeFinder.php +0 -81
- package/plugins/nikic/php-parser/lib/PhpParser/NodeTraverser.php +0 -291
- package/plugins/nikic/php-parser/lib/PhpParser/NodeTraverserInterface.php +0 -29
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/CloningVisitor.php +0 -20
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/FindingVisitor.php +0 -48
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/FirstFindingVisitor.php +0 -50
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php +0 -260
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/NodeConnectingVisitor.php +0 -52
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor/ParentConnectingVisitor.php +0 -41
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitor.php +0 -72
- package/plugins/nikic/php-parser/lib/PhpParser/NodeVisitorAbstract.php +0 -25
- package/plugins/nikic/php-parser/lib/PhpParser/Parser/Multiple.php +0 -55
- package/plugins/nikic/php-parser/lib/PhpParser/Parser/Php5.php +0 -2682
- package/plugins/nikic/php-parser/lib/PhpParser/Parser/Php7.php +0 -2898
- package/plugins/nikic/php-parser/lib/PhpParser/Parser/Tokens.php +0 -148
- package/plugins/nikic/php-parser/lib/PhpParser/Parser.php +0 -18
- package/plugins/nikic/php-parser/lib/PhpParser/ParserAbstract.php +0 -1060
- package/plugins/nikic/php-parser/lib/PhpParser/ParserFactory.php +0 -76
- package/plugins/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php +0 -1126
- package/plugins/nikic/php-parser/lib/PhpParser/PrettyPrinterAbstract.php +0 -1576
- package/plugins/rubyastgen/.bundle/config +0 -5
- package/plugins/rubyastgen/Gemfile +0 -12
- package/plugins/rubyastgen/Gemfile.lock +0 -34
- package/plugins/rubyastgen/bundle/bundler/setup.rb +0 -42
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bin/racc +0 -29
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bin/ruby-parse +0 -29
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bin/ruby-rewrite +0 -29
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bin/ruby_ast_gen +0 -29
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/.rspec +0 -3
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/Gemfile +0 -10
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/LICENSE.txt +0 -213
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/README.md +0 -46
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/Rakefile +0 -8
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/bin/console +0 -11
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/bin/setup +0 -6
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/exe/ruby_ast_gen +0 -59
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/lib/ruby_ast_gen/node_handling.rb +0 -232
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/lib/ruby_ast_gen/version.rb +0 -5
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/lib/ruby_ast_gen.rb +0 -140
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/ruby_ast_gen.gemspec +0 -25
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/spec/ruby_ast_gen_spec.rb +0 -175
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/spec/spec_helper.rb +0 -15
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-d8b5c5740b5a/update_version.rb +0 -36
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/racc-1.8.1/gem.build_complete +0 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/racc-1.8.1/gem_make.out +0 -18
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/racc-1.8.1/racc/cparse.so +0 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ast-2.4.3/LICENSE.MIT +0 -20
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ast-2.4.3/README.YARD.md +0 -12
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ast-2.4.3/lib/ast/node.rb +0 -268
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ast-2.4.3/lib/ast/processor/mixin.rb +0 -288
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ast-2.4.3/lib/ast/processor.rb +0 -12
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ast-2.4.3/lib/ast/sexp.rb +0 -30
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ast-2.4.3/lib/ast.rb +0 -17
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/BSDL +0 -22
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/COPYING +0 -56
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/Gemfile +0 -10
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/README.md +0 -69
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/Rakefile +0 -18
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/bin/console +0 -14
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/bin/setup +0 -8
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/lib/ostruct.rb +0 -489
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/ostruct-0.6.1/ostruct.gemspec +0 -24
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/LICENSE.txt +0 -26
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/bin/ruby-parse +0 -7
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/bin/ruby-rewrite +0 -7
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/gauntlet_parser.rb +0 -123
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/all.rb +0 -17
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ast/node.rb +0 -40
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ast/processor.rb +0 -293
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/base.rb +0 -294
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/builders/default.rb +0 -2351
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/clobbering_error.rb +0 -13
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/color.rb +0 -32
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/context.rb +0 -51
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/current.rb +0 -146
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/current_arg_stack.rb +0 -46
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/deprecation.rb +0 -13
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/diagnostic/engine.rb +0 -104
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/diagnostic.rb +0 -163
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/lexer/dedenter.rb +0 -88
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/lexer/explanation.rb +0 -55
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/lexer/literal.rb +0 -284
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/lexer/stack_state.rb +0 -49
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/lexer-F0.rb +0 -12931
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/lexer-F1.rb +0 -14884
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/lexer-strings.rb +0 -5433
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/macruby.rb +0 -9634
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/max_numparam_stack.rb +0 -56
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/messages.rb +0 -125
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/meta.rb +0 -48
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/rewriter.rb +0 -105
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby18.rb +0 -9272
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby19.rb +0 -9558
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby20.rb +0 -10229
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby21.rb +0 -10203
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby22.rb +0 -10302
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby23.rb +0 -10322
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby24.rb +0 -10454
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby25.rb +0 -10374
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby26.rb +0 -10352
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby27.rb +0 -11948
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby30.rb +0 -12244
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby31.rb +0 -12717
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby32.rb +0 -12705
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby33.rb +0 -12590
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/ruby34.rb +0 -12597
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/rubymotion.rb +0 -9515
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/runner/ruby_parse.rb +0 -157
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/runner/ruby_rewrite.rb +0 -101
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/runner.rb +0 -299
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/buffer.rb +0 -369
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/comment/associator.rb +0 -233
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/comment.rb +0 -134
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/collection.rb +0 -18
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/condition.rb +0 -21
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/constant.rb +0 -32
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/definition.rb +0 -23
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/for.rb +0 -19
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/heredoc.rb +0 -19
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/index.rb +0 -33
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/keyword.rb +0 -20
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/method_definition.rb +0 -25
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/objc_kwarg.rb +0 -19
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/operator.rb +0 -17
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/rescue_body.rb +0 -21
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/send.rb +0 -36
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/ternary.rb +0 -18
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map/variable.rb +0 -31
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/map.rb +0 -186
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/range.rb +0 -326
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/rewriter/action.rb +0 -44
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/rewriter.rb +0 -513
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/tree_rewriter/action.rb +0 -243
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/source/tree_rewriter.rb +0 -431
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/static_environment.rb +0 -134
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/syntax_error.rb +0 -21
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/tree_rewriter.rb +0 -133
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/unknown_encoding_in_magic_comment_error.rb +0 -15
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/variables_stack.rb +0 -36
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser/version.rb +0 -5
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/lib/parser.rb +0 -91
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/parser-3.3.8.0/parser.gemspec +0 -43
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/BSDL +0 -22
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/COPYING +0 -56
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ChangeLog +0 -846
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/README.ja.rdoc +0 -58
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/README.rdoc +0 -60
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/TODO +0 -5
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/bin/racc +0 -320
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/en/grammar.en.rdoc +0 -218
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/en/grammar2.en.rdoc +0 -219
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/ja/command.ja.html +0 -99
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/ja/debug.ja.rdoc +0 -36
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/ja/grammar.ja.rdoc +0 -348
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/ja/index.ja.html +0 -10
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/ja/parser.ja.rdoc +0 -125
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/doc/ja/usage.ja.html +0 -414
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse/Makefile +0 -273
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse/cparse.c +0 -840
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse/extconf.rb +0 -8
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/compat.rb +0 -33
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/cparse.so +0 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/debugflags.rb +0 -60
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/exception.rb +0 -16
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/grammar.rb +0 -1191
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/grammarfileparser.rb +0 -667
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/info.rb +0 -18
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/iset.rb +0 -92
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/logfilegenerator.rb +0 -212
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/parser-text.rb +0 -644
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/parser.rb +0 -630
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/parserfilegenerator.rb +0 -473
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/sourcetext.rb +0 -35
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/state.rb +0 -976
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/statetransitiontable.rb +0 -311
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc/static.rb +0 -5
- package/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/lib/racc.rb +0 -6
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/ast-2.4.3.gemspec +0 -29
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/ostruct-0.6.1.gemspec +0 -21
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/parser-3.3.8.0.gemspec +0 -37
- package/plugins/rubyastgen/bundle/ruby/3.4.0/specifications/racc-1.8.1.gemspec +0 -28
- package/plugins/rubyastgen/setup.ps1 +0 -4
- package/plugins/rubyastgen/setup.sh +0 -6
- package/utils.mjs +0 -139
|
@@ -1,644 +0,0 @@
|
|
|
1
|
-
module Racc
|
|
2
|
-
PARSER_TEXT = <<'__end_of_file__'
|
|
3
|
-
#--
|
|
4
|
-
# Copyright (c) 1999-2006 Minero Aoki
|
|
5
|
-
#
|
|
6
|
-
# This program is free software.
|
|
7
|
-
# You can distribute/modify this program under the same terms of ruby.
|
|
8
|
-
#
|
|
9
|
-
# As a special exception, when this code is copied by Racc
|
|
10
|
-
# into a Racc output file, you may use that output file
|
|
11
|
-
# without restriction.
|
|
12
|
-
#++
|
|
13
|
-
|
|
14
|
-
unless $".find {|p| p.end_with?('/racc/info.rb')}
|
|
15
|
-
$".push "#{__dir__}/racc/info.rb"
|
|
16
|
-
|
|
17
|
-
module Racc
|
|
18
|
-
VERSION = '1.8.1'
|
|
19
|
-
Version = VERSION
|
|
20
|
-
Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
module Racc
|
|
27
|
-
class ParseError < StandardError; end
|
|
28
|
-
end
|
|
29
|
-
unless defined?(::ParseError)
|
|
30
|
-
ParseError = Racc::ParseError # :nodoc:
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Racc is an LALR(1) parser generator.
|
|
34
|
-
# It is written in Ruby itself, and generates Ruby programs.
|
|
35
|
-
#
|
|
36
|
-
# == Command-line Reference
|
|
37
|
-
#
|
|
38
|
-
# racc [-o<var>filename</var>] [--output-file=<var>filename</var>]
|
|
39
|
-
# [-e<var>rubypath</var>] [--executable=<var>rubypath</var>]
|
|
40
|
-
# [-v] [--verbose]
|
|
41
|
-
# [-O<var>filename</var>] [--log-file=<var>filename</var>]
|
|
42
|
-
# [-g] [--debug]
|
|
43
|
-
# [-E] [--embedded]
|
|
44
|
-
# [-l] [--no-line-convert]
|
|
45
|
-
# [-c] [--line-convert-all]
|
|
46
|
-
# [-a] [--no-omit-actions]
|
|
47
|
-
# [-C] [--check-only]
|
|
48
|
-
# [-S] [--output-status]
|
|
49
|
-
# [--version] [--copyright] [--help] <var>grammarfile</var>
|
|
50
|
-
#
|
|
51
|
-
# [+grammarfile+]
|
|
52
|
-
# Racc grammar file. Any extension is permitted.
|
|
53
|
-
# [-o+outfile+, --output-file=+outfile+]
|
|
54
|
-
# A filename for output. default is <+filename+>.tab.rb
|
|
55
|
-
# [-O+filename+, --log-file=+filename+]
|
|
56
|
-
# Place logging output in file +filename+.
|
|
57
|
-
# Default log file name is <+filename+>.output.
|
|
58
|
-
# [-e+rubypath+, --executable=+rubypath+]
|
|
59
|
-
# output executable file(mode 755). where +path+ is the Ruby interpreter.
|
|
60
|
-
# [-v, --verbose]
|
|
61
|
-
# verbose mode. create +filename+.output file, like yacc's y.output file.
|
|
62
|
-
# [-g, --debug]
|
|
63
|
-
# add debug code to parser class. To display debugging information,
|
|
64
|
-
# use this '-g' option and set @yydebug true in parser class.
|
|
65
|
-
# [-E, --embedded]
|
|
66
|
-
# Output parser which doesn't need runtime files (racc/parser.rb).
|
|
67
|
-
# [-F, --frozen]
|
|
68
|
-
# Output parser which declares frozen_string_literals: true
|
|
69
|
-
# [-C, --check-only]
|
|
70
|
-
# Check syntax of racc grammar file and quit.
|
|
71
|
-
# [-S, --output-status]
|
|
72
|
-
# Print messages time to time while compiling.
|
|
73
|
-
# [-l, --no-line-convert]
|
|
74
|
-
# turns off line number converting.
|
|
75
|
-
# [-c, --line-convert-all]
|
|
76
|
-
# Convert line number of actions, inner, header and footer.
|
|
77
|
-
# [-a, --no-omit-actions]
|
|
78
|
-
# Call all actions, even if an action is empty.
|
|
79
|
-
# [--version]
|
|
80
|
-
# print Racc version and quit.
|
|
81
|
-
# [--copyright]
|
|
82
|
-
# Print copyright and quit.
|
|
83
|
-
# [--help]
|
|
84
|
-
# Print usage and quit.
|
|
85
|
-
#
|
|
86
|
-
# == Generating Parser Using Racc
|
|
87
|
-
#
|
|
88
|
-
# To compile Racc grammar file, simply type:
|
|
89
|
-
#
|
|
90
|
-
# $ racc parse.y
|
|
91
|
-
#
|
|
92
|
-
# This creates Ruby script file "parse.tab.y". The -o option can change the output filename.
|
|
93
|
-
#
|
|
94
|
-
# == Writing A Racc Grammar File
|
|
95
|
-
#
|
|
96
|
-
# If you want your own parser, you have to write a grammar file.
|
|
97
|
-
# A grammar file contains the name of your parser class, grammar for the parser,
|
|
98
|
-
# user code, and anything else.
|
|
99
|
-
# When writing a grammar file, yacc's knowledge is helpful.
|
|
100
|
-
# If you have not used yacc before, Racc is not too difficult.
|
|
101
|
-
#
|
|
102
|
-
# Here's an example Racc grammar file.
|
|
103
|
-
#
|
|
104
|
-
# class Calcparser
|
|
105
|
-
# rule
|
|
106
|
-
# target: exp { print val[0] }
|
|
107
|
-
#
|
|
108
|
-
# exp: exp '+' exp
|
|
109
|
-
# | exp '*' exp
|
|
110
|
-
# | '(' exp ')'
|
|
111
|
-
# | NUMBER
|
|
112
|
-
# end
|
|
113
|
-
#
|
|
114
|
-
# Racc grammar files resemble yacc files.
|
|
115
|
-
# But (of course), this is Ruby code.
|
|
116
|
-
# yacc's $$ is the 'result', $0, $1... is
|
|
117
|
-
# an array called 'val', and $-1, $-2... is an array called '_values'.
|
|
118
|
-
#
|
|
119
|
-
# See the {Grammar File Reference}[rdoc-ref:lib/racc/rdoc/grammar.en.rdoc] for
|
|
120
|
-
# more information on grammar files.
|
|
121
|
-
#
|
|
122
|
-
# == Parser
|
|
123
|
-
#
|
|
124
|
-
# Then you must prepare the parse entry method. There are two types of
|
|
125
|
-
# parse methods in Racc, Racc::Parser#do_parse and Racc::Parser#yyparse
|
|
126
|
-
#
|
|
127
|
-
# Racc::Parser#do_parse is simple.
|
|
128
|
-
#
|
|
129
|
-
# It's yyparse() of yacc, and Racc::Parser#next_token is yylex().
|
|
130
|
-
# This method must returns an array like [TOKENSYMBOL, ITS_VALUE].
|
|
131
|
-
# EOF is [false, false].
|
|
132
|
-
# (TOKENSYMBOL is a Ruby symbol (taken from String#intern) by default.
|
|
133
|
-
# If you want to change this, see the grammar reference.
|
|
134
|
-
#
|
|
135
|
-
# Racc::Parser#yyparse is little complicated, but useful.
|
|
136
|
-
# It does not use Racc::Parser#next_token, instead it gets tokens from any iterator.
|
|
137
|
-
#
|
|
138
|
-
# For example, <code>yyparse(obj, :scan)</code> causes
|
|
139
|
-
# calling +obj#scan+, and you can return tokens by yielding them from +obj#scan+.
|
|
140
|
-
#
|
|
141
|
-
# == Debugging
|
|
142
|
-
#
|
|
143
|
-
# When debugging, "-v" or/and the "-g" option is helpful.
|
|
144
|
-
#
|
|
145
|
-
# "-v" creates verbose log file (.output).
|
|
146
|
-
# "-g" creates a "Verbose Parser".
|
|
147
|
-
# Verbose Parser prints the internal status when parsing.
|
|
148
|
-
# But it's _not_ automatic.
|
|
149
|
-
# You must use -g option and set +@yydebug+ to +true+ in order to get output.
|
|
150
|
-
# -g option only creates the verbose parser.
|
|
151
|
-
#
|
|
152
|
-
# === Racc reported syntax error.
|
|
153
|
-
#
|
|
154
|
-
# Isn't there too many "end"?
|
|
155
|
-
# grammar of racc file is changed in v0.10.
|
|
156
|
-
#
|
|
157
|
-
# Racc does not use '%' mark, while yacc uses huge number of '%' marks..
|
|
158
|
-
#
|
|
159
|
-
# === Racc reported "XXXX conflicts".
|
|
160
|
-
#
|
|
161
|
-
# Try "racc -v xxxx.y".
|
|
162
|
-
# It causes producing racc's internal log file, xxxx.output.
|
|
163
|
-
#
|
|
164
|
-
# === Generated parsers does not work correctly
|
|
165
|
-
#
|
|
166
|
-
# Try "racc -g xxxx.y".
|
|
167
|
-
# This command let racc generate "debugging parser".
|
|
168
|
-
# Then set @yydebug=true in your parser.
|
|
169
|
-
# It produces a working log of your parser.
|
|
170
|
-
#
|
|
171
|
-
# == Re-distributing Racc runtime
|
|
172
|
-
#
|
|
173
|
-
# A parser, which is created by Racc, requires the Racc runtime module;
|
|
174
|
-
# racc/parser.rb.
|
|
175
|
-
#
|
|
176
|
-
# Ruby 1.8.x comes with Racc runtime module,
|
|
177
|
-
# you need NOT distribute Racc runtime files.
|
|
178
|
-
#
|
|
179
|
-
# If you want to include the Racc runtime module with your parser.
|
|
180
|
-
# This can be done by using '-E' option:
|
|
181
|
-
#
|
|
182
|
-
# $ racc -E -omyparser.rb myparser.y
|
|
183
|
-
#
|
|
184
|
-
# This command creates myparser.rb which `includes' Racc runtime.
|
|
185
|
-
# Only you must do is to distribute your parser file (myparser.rb).
|
|
186
|
-
#
|
|
187
|
-
# Note: parser.rb is ruby license, but your parser is not.
|
|
188
|
-
# Your own parser is completely yours.
|
|
189
|
-
module Racc
|
|
190
|
-
|
|
191
|
-
unless defined?(Racc_No_Extensions)
|
|
192
|
-
Racc_No_Extensions = false # :nodoc:
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
class Parser
|
|
196
|
-
|
|
197
|
-
Racc_Runtime_Version = ::Racc::VERSION
|
|
198
|
-
Racc_Runtime_Core_Version_R = ::Racc::VERSION
|
|
199
|
-
|
|
200
|
-
begin
|
|
201
|
-
if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
|
|
202
|
-
require 'jruby'
|
|
203
|
-
require 'racc/cparse-jruby.jar'
|
|
204
|
-
com.headius.racc.Cparse.new.load(JRuby.runtime, false)
|
|
205
|
-
else
|
|
206
|
-
require 'racc/cparse'
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
unless new.respond_to?(:_racc_do_parse_c, true)
|
|
210
|
-
raise LoadError, 'old cparse.so'
|
|
211
|
-
end
|
|
212
|
-
if Racc_No_Extensions
|
|
213
|
-
raise LoadError, 'selecting ruby version of racc runtime core'
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
Racc_Main_Parsing_Routine = :_racc_do_parse_c # :nodoc:
|
|
217
|
-
Racc_YY_Parse_Method = :_racc_yyparse_c # :nodoc:
|
|
218
|
-
Racc_Runtime_Core_Version = Racc_Runtime_Core_Version_C # :nodoc:
|
|
219
|
-
Racc_Runtime_Type = 'c' # :nodoc:
|
|
220
|
-
rescue LoadError
|
|
221
|
-
Racc_Main_Parsing_Routine = :_racc_do_parse_rb
|
|
222
|
-
Racc_YY_Parse_Method = :_racc_yyparse_rb
|
|
223
|
-
Racc_Runtime_Core_Version = Racc_Runtime_Core_Version_R
|
|
224
|
-
Racc_Runtime_Type = 'ruby'
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
def Parser.racc_runtime_type # :nodoc:
|
|
228
|
-
Racc_Runtime_Type
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
def _racc_setup
|
|
232
|
-
@yydebug = false unless self.class::Racc_debug_parser
|
|
233
|
-
@yydebug = false unless defined?(@yydebug)
|
|
234
|
-
if @yydebug
|
|
235
|
-
@racc_debug_out = $stderr unless defined?(@racc_debug_out)
|
|
236
|
-
@racc_debug_out ||= $stderr
|
|
237
|
-
end
|
|
238
|
-
arg = self.class::Racc_arg
|
|
239
|
-
arg[13] = true if arg.size < 14
|
|
240
|
-
arg
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
def _racc_init_sysvars
|
|
244
|
-
@racc_state = [0]
|
|
245
|
-
@racc_tstack = []
|
|
246
|
-
@racc_vstack = []
|
|
247
|
-
|
|
248
|
-
@racc_t = nil
|
|
249
|
-
@racc_val = nil
|
|
250
|
-
|
|
251
|
-
@racc_read_next = true
|
|
252
|
-
|
|
253
|
-
@racc_user_yyerror = false
|
|
254
|
-
@racc_error_status = 0
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
# The entry point of the parser. This method is used with #next_token.
|
|
258
|
-
# If Racc wants to get token (and its value), calls next_token.
|
|
259
|
-
#
|
|
260
|
-
# Example:
|
|
261
|
-
# def parse
|
|
262
|
-
# @q = [[1,1],
|
|
263
|
-
# [2,2],
|
|
264
|
-
# [3,3],
|
|
265
|
-
# [false, '$']]
|
|
266
|
-
# do_parse
|
|
267
|
-
# end
|
|
268
|
-
#
|
|
269
|
-
# def next_token
|
|
270
|
-
# @q.shift
|
|
271
|
-
# end
|
|
272
|
-
class_eval <<~RUBY, __FILE__, __LINE__ + 1
|
|
273
|
-
def do_parse
|
|
274
|
-
#{Racc_Main_Parsing_Routine}(_racc_setup(), false)
|
|
275
|
-
end
|
|
276
|
-
RUBY
|
|
277
|
-
|
|
278
|
-
# The method to fetch next token.
|
|
279
|
-
# If you use #do_parse method, you must implement #next_token.
|
|
280
|
-
#
|
|
281
|
-
# The format of return value is [TOKEN_SYMBOL, VALUE].
|
|
282
|
-
# +token-symbol+ is represented by Ruby's symbol by default, e.g. :IDENT
|
|
283
|
-
# for 'IDENT'. ";" (String) for ';'.
|
|
284
|
-
#
|
|
285
|
-
# The final symbol (End of file) must be false.
|
|
286
|
-
def next_token
|
|
287
|
-
raise NotImplementedError, "#{self.class}\#next_token is not defined"
|
|
288
|
-
end
|
|
289
|
-
|
|
290
|
-
def _racc_do_parse_rb(arg, in_debug)
|
|
291
|
-
action_table, action_check, action_default, action_pointer,
|
|
292
|
-
_, _, _, _,
|
|
293
|
-
_, _, token_table, * = arg
|
|
294
|
-
|
|
295
|
-
_racc_init_sysvars
|
|
296
|
-
tok = act = i = nil
|
|
297
|
-
|
|
298
|
-
catch(:racc_end_parse) {
|
|
299
|
-
while true
|
|
300
|
-
if i = action_pointer[@racc_state[-1]]
|
|
301
|
-
if @racc_read_next
|
|
302
|
-
if @racc_t != 0 # not EOF
|
|
303
|
-
tok, @racc_val = next_token()
|
|
304
|
-
unless tok # EOF
|
|
305
|
-
@racc_t = 0
|
|
306
|
-
else
|
|
307
|
-
@racc_t = (token_table[tok] or 1) # error token
|
|
308
|
-
end
|
|
309
|
-
racc_read_token(@racc_t, tok, @racc_val) if @yydebug
|
|
310
|
-
@racc_read_next = false
|
|
311
|
-
end
|
|
312
|
-
end
|
|
313
|
-
i += @racc_t
|
|
314
|
-
unless i >= 0 and
|
|
315
|
-
act = action_table[i] and
|
|
316
|
-
action_check[i] == @racc_state[-1]
|
|
317
|
-
act = action_default[@racc_state[-1]]
|
|
318
|
-
end
|
|
319
|
-
else
|
|
320
|
-
act = action_default[@racc_state[-1]]
|
|
321
|
-
end
|
|
322
|
-
while act = _racc_evalact(act, arg)
|
|
323
|
-
;
|
|
324
|
-
end
|
|
325
|
-
end
|
|
326
|
-
}
|
|
327
|
-
end
|
|
328
|
-
|
|
329
|
-
# Another entry point for the parser.
|
|
330
|
-
# If you use this method, you must implement RECEIVER#METHOD_ID method.
|
|
331
|
-
#
|
|
332
|
-
# RECEIVER#METHOD_ID is a method to get next token.
|
|
333
|
-
# It must 'yield' the token, which format is [TOKEN-SYMBOL, VALUE].
|
|
334
|
-
class_eval <<~RUBY, __FILE__, __LINE__ + 1
|
|
335
|
-
def yyparse(recv, mid)
|
|
336
|
-
#{Racc_YY_Parse_Method}(recv, mid, _racc_setup(), false)
|
|
337
|
-
end
|
|
338
|
-
RUBY
|
|
339
|
-
|
|
340
|
-
def _racc_yyparse_rb(recv, mid, arg, c_debug)
|
|
341
|
-
action_table, action_check, action_default, action_pointer,
|
|
342
|
-
_, _, _, _,
|
|
343
|
-
_, _, token_table, * = arg
|
|
344
|
-
|
|
345
|
-
_racc_init_sysvars
|
|
346
|
-
|
|
347
|
-
catch(:racc_end_parse) {
|
|
348
|
-
until i = action_pointer[@racc_state[-1]]
|
|
349
|
-
while act = _racc_evalact(action_default[@racc_state[-1]], arg)
|
|
350
|
-
;
|
|
351
|
-
end
|
|
352
|
-
end
|
|
353
|
-
recv.__send__(mid) do |tok, val|
|
|
354
|
-
unless tok
|
|
355
|
-
@racc_t = 0
|
|
356
|
-
else
|
|
357
|
-
@racc_t = (token_table[tok] or 1) # error token
|
|
358
|
-
end
|
|
359
|
-
@racc_val = val
|
|
360
|
-
@racc_read_next = false
|
|
361
|
-
|
|
362
|
-
i += @racc_t
|
|
363
|
-
unless i >= 0 and
|
|
364
|
-
act = action_table[i] and
|
|
365
|
-
action_check[i] == @racc_state[-1]
|
|
366
|
-
act = action_default[@racc_state[-1]]
|
|
367
|
-
end
|
|
368
|
-
while act = _racc_evalact(act, arg)
|
|
369
|
-
;
|
|
370
|
-
end
|
|
371
|
-
|
|
372
|
-
while !(i = action_pointer[@racc_state[-1]]) ||
|
|
373
|
-
! @racc_read_next ||
|
|
374
|
-
@racc_t == 0 # $
|
|
375
|
-
unless i and i += @racc_t and
|
|
376
|
-
i >= 0 and
|
|
377
|
-
act = action_table[i] and
|
|
378
|
-
action_check[i] == @racc_state[-1]
|
|
379
|
-
act = action_default[@racc_state[-1]]
|
|
380
|
-
end
|
|
381
|
-
while act = _racc_evalact(act, arg)
|
|
382
|
-
;
|
|
383
|
-
end
|
|
384
|
-
end
|
|
385
|
-
end
|
|
386
|
-
}
|
|
387
|
-
end
|
|
388
|
-
|
|
389
|
-
###
|
|
390
|
-
### common
|
|
391
|
-
###
|
|
392
|
-
|
|
393
|
-
def _racc_evalact(act, arg)
|
|
394
|
-
action_table, action_check, _, action_pointer,
|
|
395
|
-
_, _, _, _,
|
|
396
|
-
_, _, _, shift_n,
|
|
397
|
-
reduce_n, * = arg
|
|
398
|
-
nerr = 0 # tmp
|
|
399
|
-
|
|
400
|
-
if act > 0 and act < shift_n
|
|
401
|
-
#
|
|
402
|
-
# shift
|
|
403
|
-
#
|
|
404
|
-
if @racc_error_status > 0
|
|
405
|
-
@racc_error_status -= 1 unless @racc_t <= 1 # error token or EOF
|
|
406
|
-
end
|
|
407
|
-
@racc_vstack.push @racc_val
|
|
408
|
-
@racc_state.push act
|
|
409
|
-
@racc_read_next = true
|
|
410
|
-
if @yydebug
|
|
411
|
-
@racc_tstack.push @racc_t
|
|
412
|
-
racc_shift @racc_t, @racc_tstack, @racc_vstack
|
|
413
|
-
end
|
|
414
|
-
|
|
415
|
-
elsif act < 0 and act > -reduce_n
|
|
416
|
-
#
|
|
417
|
-
# reduce
|
|
418
|
-
#
|
|
419
|
-
code = catch(:racc_jump) {
|
|
420
|
-
@racc_state.push _racc_do_reduce(arg, act)
|
|
421
|
-
false
|
|
422
|
-
}
|
|
423
|
-
if code
|
|
424
|
-
case code
|
|
425
|
-
when 1 # yyerror
|
|
426
|
-
@racc_user_yyerror = true # user_yyerror
|
|
427
|
-
return -reduce_n
|
|
428
|
-
when 2 # yyaccept
|
|
429
|
-
return shift_n
|
|
430
|
-
else
|
|
431
|
-
raise '[Racc Bug] unknown jump code'
|
|
432
|
-
end
|
|
433
|
-
end
|
|
434
|
-
|
|
435
|
-
elsif act == shift_n
|
|
436
|
-
#
|
|
437
|
-
# accept
|
|
438
|
-
#
|
|
439
|
-
racc_accept if @yydebug
|
|
440
|
-
throw :racc_end_parse, @racc_vstack[0]
|
|
441
|
-
|
|
442
|
-
elsif act == -reduce_n
|
|
443
|
-
#
|
|
444
|
-
# error
|
|
445
|
-
#
|
|
446
|
-
case @racc_error_status
|
|
447
|
-
when 0
|
|
448
|
-
unless arg[21] # user_yyerror
|
|
449
|
-
nerr += 1
|
|
450
|
-
on_error @racc_t, @racc_val, @racc_vstack
|
|
451
|
-
end
|
|
452
|
-
when 3
|
|
453
|
-
if @racc_t == 0 # is $
|
|
454
|
-
# We're at EOF, and another error occurred immediately after
|
|
455
|
-
# attempting auto-recovery
|
|
456
|
-
throw :racc_end_parse, nil
|
|
457
|
-
end
|
|
458
|
-
@racc_read_next = true
|
|
459
|
-
end
|
|
460
|
-
@racc_user_yyerror = false
|
|
461
|
-
@racc_error_status = 3
|
|
462
|
-
while true
|
|
463
|
-
if i = action_pointer[@racc_state[-1]]
|
|
464
|
-
i += 1 # error token
|
|
465
|
-
if i >= 0 and
|
|
466
|
-
(act = action_table[i]) and
|
|
467
|
-
action_check[i] == @racc_state[-1]
|
|
468
|
-
break
|
|
469
|
-
end
|
|
470
|
-
end
|
|
471
|
-
throw :racc_end_parse, nil if @racc_state.size <= 1
|
|
472
|
-
@racc_state.pop
|
|
473
|
-
@racc_vstack.pop
|
|
474
|
-
if @yydebug
|
|
475
|
-
@racc_tstack.pop
|
|
476
|
-
racc_e_pop @racc_state, @racc_tstack, @racc_vstack
|
|
477
|
-
end
|
|
478
|
-
end
|
|
479
|
-
return act
|
|
480
|
-
|
|
481
|
-
else
|
|
482
|
-
raise "[Racc Bug] unknown action #{act.inspect}"
|
|
483
|
-
end
|
|
484
|
-
|
|
485
|
-
racc_next_state(@racc_state[-1], @racc_state) if @yydebug
|
|
486
|
-
|
|
487
|
-
nil
|
|
488
|
-
end
|
|
489
|
-
|
|
490
|
-
def _racc_do_reduce(arg, act)
|
|
491
|
-
_, _, _, _,
|
|
492
|
-
goto_table, goto_check, goto_default, goto_pointer,
|
|
493
|
-
nt_base, reduce_table, _, _,
|
|
494
|
-
_, use_result, * = arg
|
|
495
|
-
|
|
496
|
-
state = @racc_state
|
|
497
|
-
vstack = @racc_vstack
|
|
498
|
-
tstack = @racc_tstack
|
|
499
|
-
|
|
500
|
-
i = act * -3
|
|
501
|
-
len = reduce_table[i]
|
|
502
|
-
reduce_to = reduce_table[i+1]
|
|
503
|
-
method_id = reduce_table[i+2]
|
|
504
|
-
void_array = []
|
|
505
|
-
|
|
506
|
-
tmp_t = tstack[-len, len] if @yydebug
|
|
507
|
-
tmp_v = vstack[-len, len]
|
|
508
|
-
tstack[-len, len] = void_array if @yydebug
|
|
509
|
-
vstack[-len, len] = void_array
|
|
510
|
-
state[-len, len] = void_array
|
|
511
|
-
|
|
512
|
-
# tstack must be updated AFTER method call
|
|
513
|
-
if use_result
|
|
514
|
-
vstack.push __send__(method_id, tmp_v, vstack, tmp_v[0])
|
|
515
|
-
else
|
|
516
|
-
vstack.push __send__(method_id, tmp_v, vstack)
|
|
517
|
-
end
|
|
518
|
-
tstack.push reduce_to
|
|
519
|
-
|
|
520
|
-
racc_reduce(tmp_t, reduce_to, tstack, vstack) if @yydebug
|
|
521
|
-
|
|
522
|
-
k1 = reduce_to - nt_base
|
|
523
|
-
if i = goto_pointer[k1]
|
|
524
|
-
i += state[-1]
|
|
525
|
-
if i >= 0 and (curstate = goto_table[i]) and goto_check[i] == k1
|
|
526
|
-
return curstate
|
|
527
|
-
end
|
|
528
|
-
end
|
|
529
|
-
goto_default[k1]
|
|
530
|
-
end
|
|
531
|
-
|
|
532
|
-
# This method is called when a parse error is found.
|
|
533
|
-
#
|
|
534
|
-
# ERROR_TOKEN_ID is an internal ID of token which caused error.
|
|
535
|
-
# You can get string representation of this ID by calling
|
|
536
|
-
# #token_to_str.
|
|
537
|
-
#
|
|
538
|
-
# ERROR_VALUE is a value of error token.
|
|
539
|
-
#
|
|
540
|
-
# value_stack is a stack of symbol values.
|
|
541
|
-
# DO NOT MODIFY this object.
|
|
542
|
-
#
|
|
543
|
-
# This method raises ParseError by default.
|
|
544
|
-
#
|
|
545
|
-
# If this method returns, parsers enter "error recovering mode".
|
|
546
|
-
def on_error(t, val, vstack)
|
|
547
|
-
raise ParseError, sprintf("parse error on value %s (%s)",
|
|
548
|
-
val.inspect, token_to_str(t) || '?')
|
|
549
|
-
end
|
|
550
|
-
|
|
551
|
-
# Enter error recovering mode.
|
|
552
|
-
# This method does not call #on_error.
|
|
553
|
-
def yyerror
|
|
554
|
-
throw :racc_jump, 1
|
|
555
|
-
end
|
|
556
|
-
|
|
557
|
-
# Exit parser.
|
|
558
|
-
# Return value is +Symbol_Value_Stack[0]+.
|
|
559
|
-
def yyaccept
|
|
560
|
-
throw :racc_jump, 2
|
|
561
|
-
end
|
|
562
|
-
|
|
563
|
-
# Leave error recovering mode.
|
|
564
|
-
def yyerrok
|
|
565
|
-
@racc_error_status = 0
|
|
566
|
-
end
|
|
567
|
-
|
|
568
|
-
# For debugging output
|
|
569
|
-
def racc_read_token(t, tok, val)
|
|
570
|
-
@racc_debug_out.print 'read '
|
|
571
|
-
@racc_debug_out.print tok.inspect, '(', racc_token2str(t), ') '
|
|
572
|
-
@racc_debug_out.puts val.inspect
|
|
573
|
-
@racc_debug_out.puts
|
|
574
|
-
end
|
|
575
|
-
|
|
576
|
-
def racc_shift(tok, tstack, vstack)
|
|
577
|
-
@racc_debug_out.puts "shift #{racc_token2str tok}"
|
|
578
|
-
racc_print_stacks tstack, vstack
|
|
579
|
-
@racc_debug_out.puts
|
|
580
|
-
end
|
|
581
|
-
|
|
582
|
-
def racc_reduce(toks, sim, tstack, vstack)
|
|
583
|
-
out = @racc_debug_out
|
|
584
|
-
out.print 'reduce '
|
|
585
|
-
if toks.empty?
|
|
586
|
-
out.print ' <none>'
|
|
587
|
-
else
|
|
588
|
-
toks.each {|t| out.print ' ', racc_token2str(t) }
|
|
589
|
-
end
|
|
590
|
-
out.puts " --> #{racc_token2str(sim)}"
|
|
591
|
-
racc_print_stacks tstack, vstack
|
|
592
|
-
@racc_debug_out.puts
|
|
593
|
-
end
|
|
594
|
-
|
|
595
|
-
def racc_accept
|
|
596
|
-
@racc_debug_out.puts 'accept'
|
|
597
|
-
@racc_debug_out.puts
|
|
598
|
-
end
|
|
599
|
-
|
|
600
|
-
def racc_e_pop(state, tstack, vstack)
|
|
601
|
-
@racc_debug_out.puts 'error recovering mode: pop token'
|
|
602
|
-
racc_print_states state
|
|
603
|
-
racc_print_stacks tstack, vstack
|
|
604
|
-
@racc_debug_out.puts
|
|
605
|
-
end
|
|
606
|
-
|
|
607
|
-
def racc_next_state(curstate, state)
|
|
608
|
-
@racc_debug_out.puts "goto #{curstate}"
|
|
609
|
-
racc_print_states state
|
|
610
|
-
@racc_debug_out.puts
|
|
611
|
-
end
|
|
612
|
-
|
|
613
|
-
def racc_print_stacks(t, v)
|
|
614
|
-
out = @racc_debug_out
|
|
615
|
-
out.print ' ['
|
|
616
|
-
t.each_index do |i|
|
|
617
|
-
out.print ' (', racc_token2str(t[i]), ' ', v[i].inspect, ')'
|
|
618
|
-
end
|
|
619
|
-
out.puts ' ]'
|
|
620
|
-
end
|
|
621
|
-
|
|
622
|
-
def racc_print_states(s)
|
|
623
|
-
out = @racc_debug_out
|
|
624
|
-
out.print ' ['
|
|
625
|
-
s.each {|st| out.print ' ', st }
|
|
626
|
-
out.puts ' ]'
|
|
627
|
-
end
|
|
628
|
-
|
|
629
|
-
def racc_token2str(tok)
|
|
630
|
-
self.class::Racc_token_to_s_table[tok] or
|
|
631
|
-
raise "[Racc Bug] can't convert token #{tok} to string"
|
|
632
|
-
end
|
|
633
|
-
|
|
634
|
-
# Convert internal ID of token symbol to the string.
|
|
635
|
-
def token_to_str(t)
|
|
636
|
-
self.class::Racc_token_to_s_table[t]
|
|
637
|
-
end
|
|
638
|
-
|
|
639
|
-
end
|
|
640
|
-
|
|
641
|
-
end
|
|
642
|
-
|
|
643
|
-
__end_of_file__
|
|
644
|
-
end
|