@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,58 +0,0 @@
|
|
|
1
|
-
= Racc
|
|
2
|
-
|
|
3
|
-
* https://github.com/ruby/racc
|
|
4
|
-
|
|
5
|
-
== DESCRIPTION:
|
|
6
|
-
|
|
7
|
-
Racc は LALR(1) パーサジェネレータです。
|
|
8
|
-
yacc の Ruby 版に相当します。
|
|
9
|
-
|
|
10
|
-
== 必要環境
|
|
11
|
-
|
|
12
|
-
* Ruby 2.5 以降
|
|
13
|
-
|
|
14
|
-
== インストール
|
|
15
|
-
|
|
16
|
-
gem インストール:
|
|
17
|
-
|
|
18
|
-
$ gem install racc
|
|
19
|
-
|
|
20
|
-
== テスト
|
|
21
|
-
|
|
22
|
-
sample/ 以下にいくつか Racc の文法ファイルのサンプルが用意
|
|
23
|
-
してあります。動くのも動かないのもありますが、少なくとも
|
|
24
|
-
calc-ja.y は動くのでこれを処理してみましょう。Racc をインス
|
|
25
|
-
トールしたあと
|
|
26
|
-
|
|
27
|
-
$ racc -ocalc.rb calc-ja.y
|
|
28
|
-
|
|
29
|
-
として下さい。処理は一瞬から数秒で終わるので、
|
|
30
|
-
|
|
31
|
-
$ ruby calc.rb
|
|
32
|
-
|
|
33
|
-
を実行してください。ちゃんと動いてますか?
|
|
34
|
-
|
|
35
|
-
Racc の文法など詳しいことは doc.ja/ ディレクトリ以下の HTML を
|
|
36
|
-
見てください。
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
== ライセンス
|
|
40
|
-
|
|
41
|
-
このパッケージに付属するファイルの著作権は青木峰郎が保持します。
|
|
42
|
-
ライセンスは Ruby ライセンスです。ただしユーザが書いた規則
|
|
43
|
-
ファイルや、Racc がそこから生成した Ruby スクリプトはその対象
|
|
44
|
-
外です。好きなライセンスで配布してください。
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
== バグなど
|
|
48
|
-
|
|
49
|
-
Racc を使っていてバグらしき現象に遭遇したら、下記のアドレスまで
|
|
50
|
-
メールをください。作者にはバグを修正する義務はありませんがその
|
|
51
|
-
意思はあります。また、そのときはできるだけバグを再現できる文法
|
|
52
|
-
ファイルを付けてください。
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
青木峰郎(あおきみねろう)
|
|
56
|
-
aamine@loveruby.net
|
|
57
|
-
http://i.loveruby.net
|
|
58
|
-
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
= Racc
|
|
2
|
-
|
|
3
|
-
* https://github.com/ruby/racc
|
|
4
|
-
|
|
5
|
-
== DESCRIPTION:
|
|
6
|
-
|
|
7
|
-
Racc is an LALR(1) parser generator.
|
|
8
|
-
It is written in Ruby itself, and generates Ruby program.
|
|
9
|
-
|
|
10
|
-
== Requirement
|
|
11
|
-
|
|
12
|
-
* Ruby 2.5 or later.
|
|
13
|
-
|
|
14
|
-
== Installation
|
|
15
|
-
|
|
16
|
-
gem install:
|
|
17
|
-
|
|
18
|
-
$ gem install racc
|
|
19
|
-
|
|
20
|
-
== Testing Racc
|
|
21
|
-
|
|
22
|
-
Racc comes with simple calculator. To compile this, on shell:
|
|
23
|
-
|
|
24
|
-
$ racc -o calc calc.y
|
|
25
|
-
|
|
26
|
-
This process costs few seconds (or less). Then type:
|
|
27
|
-
|
|
28
|
-
$ ruby calc
|
|
29
|
-
|
|
30
|
-
... Does it work?
|
|
31
|
-
For details of Racc, see HTML documents placed under 'doc/en/'
|
|
32
|
-
and sample grammar files under 'sample/'.
|
|
33
|
-
|
|
34
|
-
== Release flow
|
|
35
|
-
|
|
36
|
-
* Update VERSION number of these files
|
|
37
|
-
* <code>RACC_VERSION</code> in "ext/racc/com/headius/racc/Cparse.java"
|
|
38
|
-
* <code>VERSION</code> in "lib/racc/info.rb"
|
|
39
|
-
* Release as a gem by <code>rake release</code> with CRuby and JRuby because Racc gem provides 2 packages
|
|
40
|
-
* Create new release on {GitHub}[https://github.com/ruby/racc/releases]
|
|
41
|
-
|
|
42
|
-
== License
|
|
43
|
-
|
|
44
|
-
Racc is distributed under the same terms of ruby.
|
|
45
|
-
(see the file COPYING). Note that you do NOT need to follow
|
|
46
|
-
ruby license for your own parser (racc outputs).
|
|
47
|
-
You can distribute those files under any licenses you want.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
== Bug Reports
|
|
51
|
-
|
|
52
|
-
Any kind of bug report is welcome.
|
|
53
|
-
If you find a bug of Racc, please report an issue at
|
|
54
|
-
https://github.com/ruby/racc/issues. Your grammar file,
|
|
55
|
-
debug output generated by "racc -g", are helpful.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
Minero Aoki
|
|
59
|
-
aamine@loveruby.net
|
|
60
|
-
http://i.loveruby.net
|
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
#
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
# Copyright (c) 1999-2006 Minero Aoki
|
|
6
|
-
#
|
|
7
|
-
# This program is free software.
|
|
8
|
-
# You can distribute/modify this program under the same terms of ruby.
|
|
9
|
-
# see the file "COPYING".
|
|
10
|
-
|
|
11
|
-
require 'racc/static'
|
|
12
|
-
require 'optparse'
|
|
13
|
-
|
|
14
|
-
def main
|
|
15
|
-
output = nil
|
|
16
|
-
debug_parser = false
|
|
17
|
-
make_logfile = false
|
|
18
|
-
logfilename = nil
|
|
19
|
-
make_executable = false
|
|
20
|
-
rubypath = nil
|
|
21
|
-
embed_runtime = false
|
|
22
|
-
frozen_strings = false
|
|
23
|
-
debug_flags = Racc::DebugFlags.new
|
|
24
|
-
line_convert = true
|
|
25
|
-
line_convert_all = false
|
|
26
|
-
omit_action_call = true
|
|
27
|
-
superclass = nil
|
|
28
|
-
check_only = false
|
|
29
|
-
verbose = false
|
|
30
|
-
profiler = RaccProfiler.new(false)
|
|
31
|
-
|
|
32
|
-
parser = OptionParser.new
|
|
33
|
-
parser.banner = "Usage: #{File.basename($0)} [options] [input]"
|
|
34
|
-
parser.on('-o', '--output-file=PATH',
|
|
35
|
-
'output file name [<input>.tab.rb]') {|name|
|
|
36
|
-
output = name
|
|
37
|
-
}
|
|
38
|
-
parser.on('-t', '--debug', 'Outputs debugging parser.') {|fl|
|
|
39
|
-
debug_parser = fl
|
|
40
|
-
}
|
|
41
|
-
parser.on('-g', 'Equivalent to -t (obsolete).') {|fl|
|
|
42
|
-
$stderr.puts "racc -g is obsolete. Use racc -t instead." if $VERBOSE
|
|
43
|
-
debug_parser = fl
|
|
44
|
-
}
|
|
45
|
-
parser.on('-v', '--verbose',
|
|
46
|
-
'Creates <filename>.output log file.') {|fl|
|
|
47
|
-
make_logfile = fl
|
|
48
|
-
}
|
|
49
|
-
parser.on('-O', '--log-file=PATH',
|
|
50
|
-
'Log file name [<input>.output]') {|path|
|
|
51
|
-
make_logfile = true
|
|
52
|
-
logfilename = path
|
|
53
|
-
}
|
|
54
|
-
parser.on('-e', '--executable [RUBYPATH]', 'Makes executable parser.') {|path|
|
|
55
|
-
make_executable = true
|
|
56
|
-
rubypath = (path == 'ruby' ? nil : path)
|
|
57
|
-
}
|
|
58
|
-
parser.on('-E', '--embedded', "Embeds Racc runtime in output.") {
|
|
59
|
-
embed_runtime = true
|
|
60
|
-
}
|
|
61
|
-
parser.on('-F', '--frozen', "Add frozen_string_literals: true.") {
|
|
62
|
-
frozen_strings = true
|
|
63
|
-
}
|
|
64
|
-
parser.on('--line-convert-all', 'Converts line numbers of user codes.') {
|
|
65
|
-
line_convert_all = true
|
|
66
|
-
}
|
|
67
|
-
parser.on('-l', '--no-line-convert', 'Never convert line numbers.') {
|
|
68
|
-
line_convert = false
|
|
69
|
-
line_convert_all = false
|
|
70
|
-
}
|
|
71
|
-
parser.on('-a', '--no-omit-actions', 'Never omit actions.') {
|
|
72
|
-
omit_action_call = false
|
|
73
|
-
}
|
|
74
|
-
parser.on('--superclass=CLASSNAME',
|
|
75
|
-
'Uses CLASSNAME instead of Racc::Parser.') {|name|
|
|
76
|
-
superclass = name
|
|
77
|
-
}
|
|
78
|
-
parser.on('-C', '--check-only', 'Checks syntax and quit immediately.') {|fl|
|
|
79
|
-
check_only = fl
|
|
80
|
-
}
|
|
81
|
-
parser.on('-S', '--output-status', 'Outputs internal status time to time.') {
|
|
82
|
-
verbose = true
|
|
83
|
-
}
|
|
84
|
-
parser.on('-P', 'Enables generator profile') {
|
|
85
|
-
profiler = RaccProfiler.new(true)
|
|
86
|
-
}
|
|
87
|
-
parser.on('-D flags', "Flags for Racc debugging (do not use).") {|flags|
|
|
88
|
-
debug_flags = Racc::DebugFlags.parse_option_string(flags)
|
|
89
|
-
}
|
|
90
|
-
#parser.on('--no-extensions', 'Run Racc without any Ruby extension.') {
|
|
91
|
-
# Racc.const_set :Racc_No_Extensions, true
|
|
92
|
-
#}
|
|
93
|
-
parser.on('--version', 'Prints version and quit.') {
|
|
94
|
-
puts "racc version #{Racc::Version}"
|
|
95
|
-
exit
|
|
96
|
-
}
|
|
97
|
-
parser.on('--runtime-version', 'Prints runtime version and quit.') {
|
|
98
|
-
printf "racc runtime version %s; %s core version %s\n",
|
|
99
|
-
Racc::Parser::Racc_Runtime_Version,
|
|
100
|
-
Racc::Parser.racc_runtime_type,
|
|
101
|
-
if Racc::Parser.racc_runtime_type == 'ruby'
|
|
102
|
-
Racc::Parser::Racc_Runtime_Core_Version_R
|
|
103
|
-
else
|
|
104
|
-
Racc::Parser::Racc_Runtime_Core_Version_C
|
|
105
|
-
end
|
|
106
|
-
exit
|
|
107
|
-
}
|
|
108
|
-
parser.on('--copyright', 'Prints copyright and quit.') {
|
|
109
|
-
puts Racc::Copyright
|
|
110
|
-
exit
|
|
111
|
-
}
|
|
112
|
-
parser.on('--help', 'Prints this message and quit.') {
|
|
113
|
-
puts parser.help
|
|
114
|
-
exit
|
|
115
|
-
}
|
|
116
|
-
begin
|
|
117
|
-
parser.parse!
|
|
118
|
-
rescue OptionParser::ParseError => err
|
|
119
|
-
abort [err.message, parser.help].join("\n")
|
|
120
|
-
end
|
|
121
|
-
if ARGV.size > 1
|
|
122
|
-
abort 'too many input'
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
input = ARGV[0] || "stdin"
|
|
126
|
-
|
|
127
|
-
if input == "stdin" && !output then
|
|
128
|
-
abort 'You must specify a path to read or use -o <path> for output.'
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
begin
|
|
132
|
-
$stderr.puts 'Parsing grammar file...' if verbose
|
|
133
|
-
result = profiler.section('parse') {
|
|
134
|
-
parser = Racc::GrammarFileParser.new(debug_flags)
|
|
135
|
-
content = input == "stdin" ? ARGF.read : File.read(input)
|
|
136
|
-
parser.parse(content, File.basename(input))
|
|
137
|
-
}
|
|
138
|
-
if check_only
|
|
139
|
-
$stderr.puts 'syntax ok'
|
|
140
|
-
exit
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
$stderr.puts 'Generating LALR states...' if verbose
|
|
144
|
-
states = profiler.section('nfa') {
|
|
145
|
-
Racc::States.new(result.grammar).nfa
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
$stderr.puts "Resolving #{states.size} states..." if verbose
|
|
149
|
-
profiler.section('dfa') {
|
|
150
|
-
states.dfa
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
$stderr.puts 'Creating parser file...' if verbose
|
|
154
|
-
params = result.params.dup
|
|
155
|
-
params.filename = File.basename(input)
|
|
156
|
-
# Overwrites parameters given by a grammar file with command line options.
|
|
157
|
-
params.superclass = superclass if superclass
|
|
158
|
-
params.omit_action_call = true if omit_action_call
|
|
159
|
-
# From command line option
|
|
160
|
-
if make_executable
|
|
161
|
-
params.make_executable = true
|
|
162
|
-
params.interpreter = rubypath
|
|
163
|
-
end
|
|
164
|
-
params.debug_parser = debug_parser
|
|
165
|
-
params.convert_line = line_convert
|
|
166
|
-
params.convert_line_all = line_convert_all
|
|
167
|
-
params.embed_runtime = embed_runtime
|
|
168
|
-
params.frozen_strings = frozen_strings
|
|
169
|
-
profiler.section('generation') {
|
|
170
|
-
generator = Racc::ParserFileGenerator.new(states, params)
|
|
171
|
-
generator.generate_parser_file(output || make_filename(input, '.tab.rb'))
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
if make_logfile
|
|
175
|
-
profiler.section('logging') {
|
|
176
|
-
$stderr.puts 'Creating log file...' if verbose
|
|
177
|
-
logfilename ||= make_filename(output || File.basename(input), '.output')
|
|
178
|
-
File.open(logfilename, 'w') {|f|
|
|
179
|
-
Racc::LogFileGenerator.new(states, debug_flags).output f
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
end
|
|
183
|
-
if debug_flags.status_logging
|
|
184
|
-
log_useless states.grammar
|
|
185
|
-
log_conflict states
|
|
186
|
-
else
|
|
187
|
-
has_useless = report_useless states.grammar
|
|
188
|
-
has_conflicts = report_conflict states
|
|
189
|
-
if has_useless || has_conflicts
|
|
190
|
-
preamble = make_logfile ? 'C' : 'Turn on logging with "-v" and c'
|
|
191
|
-
$stderr.puts %Q{#{preamble}heck ".output" file for details}
|
|
192
|
-
end
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
profiler.report
|
|
196
|
-
if states.should_error_on_expect_mismatch?
|
|
197
|
-
raise Racc::CompileError, "#{states.grammar.n_expected_srconflicts} shift/reduce conflicts are expected but #{states.n_srconflicts} shift/reduce conflicts exist"
|
|
198
|
-
end
|
|
199
|
-
rescue Racc::Error, Errno::ENOENT, Errno::EPERM => err
|
|
200
|
-
raise if $DEBUG or debug_flags.any?
|
|
201
|
-
lineno = err.message.slice(/\A\d+:/).to_s
|
|
202
|
-
abort "#{File.basename $0}: #{input}:#{lineno} #{err.message.strip}"
|
|
203
|
-
end
|
|
204
|
-
end
|
|
205
|
-
|
|
206
|
-
def make_filename(path, suffix)
|
|
207
|
-
path.sub(/(?:\..*?)?\z/, suffix)
|
|
208
|
-
end
|
|
209
|
-
|
|
210
|
-
LIST_LIMIT = 10
|
|
211
|
-
def report_list(enum, label)
|
|
212
|
-
c = enum.count
|
|
213
|
-
if c > 0
|
|
214
|
-
$stderr.puts "#{c} #{label}:"
|
|
215
|
-
enum.first(LIST_LIMIT).each do |item|
|
|
216
|
-
$stderr.puts " #{yield item}"
|
|
217
|
-
end
|
|
218
|
-
$stderr.puts " ..." if c > LIST_LIMIT
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
# @return [Boolean] if anything was reported
|
|
223
|
-
def report_conflict(states)
|
|
224
|
-
if states.should_report_srconflict?
|
|
225
|
-
reported = true
|
|
226
|
-
$stderr.puts "#{states.n_srconflicts} shift/reduce conflicts"
|
|
227
|
-
end
|
|
228
|
-
if states.rrconflict_exist?
|
|
229
|
-
reported = true
|
|
230
|
-
$stderr.puts "#{states.n_rrconflicts} reduce/reduce conflicts"
|
|
231
|
-
end
|
|
232
|
-
reported
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
def log_conflict(states)
|
|
236
|
-
logging('w') {|f|
|
|
237
|
-
f.puts "ex#{states.grammar.n_expected_srconflicts}"
|
|
238
|
-
if states.should_report_srconflict?
|
|
239
|
-
f.puts "sr#{states.n_srconflicts}"
|
|
240
|
-
end
|
|
241
|
-
if states.rrconflict_exist?
|
|
242
|
-
f.puts "rr#{states.n_rrconflicts}"
|
|
243
|
-
end
|
|
244
|
-
}
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
# @return [Boolean] if anything was reported
|
|
248
|
-
def report_useless(grammar)
|
|
249
|
-
reported = report_list(grammar.each_useless_nonterminal, 'useless nonterminals', &:to_s)
|
|
250
|
-
|
|
251
|
-
reported ||= report_list(grammar.each_useless_rule, 'useless rules') { |r| "##{r.ident} (#{r.target})" }
|
|
252
|
-
|
|
253
|
-
if grammar.start.useless?
|
|
254
|
-
$stderr.puts 'fatal: start symbol does not derive any sentence'
|
|
255
|
-
reported = true
|
|
256
|
-
end
|
|
257
|
-
reported
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
def log_useless(grammar)
|
|
261
|
-
logging('a') {|f|
|
|
262
|
-
if grammar.useless_nonterminal_exist?
|
|
263
|
-
f.puts "un#{grammar.n_useless_nonterminals}"
|
|
264
|
-
end
|
|
265
|
-
if grammar.useless_rule_exist?
|
|
266
|
-
f.puts "ur#{grammar.n_useless_rules}"
|
|
267
|
-
end
|
|
268
|
-
}
|
|
269
|
-
end
|
|
270
|
-
|
|
271
|
-
def logging(mode, &block)
|
|
272
|
-
File.open("log/#{File.basename(ARGV[0])}", mode, &block)
|
|
273
|
-
end
|
|
274
|
-
|
|
275
|
-
class RaccProfiler
|
|
276
|
-
def initialize(really)
|
|
277
|
-
@really = really
|
|
278
|
-
@log = []
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
def section(name)
|
|
282
|
-
if @really
|
|
283
|
-
t1 = ::Process.times.utime
|
|
284
|
-
result = yield
|
|
285
|
-
t2 = ::Process.times.utime
|
|
286
|
-
@log.push [name, t2 - t1]
|
|
287
|
-
result
|
|
288
|
-
else
|
|
289
|
-
yield
|
|
290
|
-
end
|
|
291
|
-
end
|
|
292
|
-
|
|
293
|
-
def report
|
|
294
|
-
return unless @really
|
|
295
|
-
f = $stderr
|
|
296
|
-
total = cumulative_time()
|
|
297
|
-
f.puts '--task-----------+--sec------+---%-'
|
|
298
|
-
@log.each do |name, time|
|
|
299
|
-
f.printf "%-19s %s %3d%%\n", name, pjust(time,4,4), (time/total*100).to_i
|
|
300
|
-
end
|
|
301
|
-
f.puts '-----------------+-----------+-----'
|
|
302
|
-
f.printf "%-20s%s\n", 'total', pjust(total,4,4)
|
|
303
|
-
end
|
|
304
|
-
|
|
305
|
-
private
|
|
306
|
-
|
|
307
|
-
def cumulative_time
|
|
308
|
-
t = @log.inject(0) {|sum, (name, time)| sum + time }
|
|
309
|
-
t == 0 ? 0.01 : t
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
def pjust(num, i, j)
|
|
313
|
-
m = /(\d+)(\.\d+)?/.match(num.to_s)
|
|
314
|
-
str = m[1].rjust(i)
|
|
315
|
-
str.concat m[2].ljust(j+1)[0,j+1] if m[2]
|
|
316
|
-
str
|
|
317
|
-
end
|
|
318
|
-
end
|
|
319
|
-
|
|
320
|
-
main
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
= Racc Grammar File Reference
|
|
2
|
-
|
|
3
|
-
== Global Structure
|
|
4
|
-
|
|
5
|
-
== Class Block and User Code Block
|
|
6
|
-
|
|
7
|
-
There are two top-level blocks: the 'class' block, and the 'user code'
|
|
8
|
-
block. The 'user code' block MUST be after the 'class' block.
|
|
9
|
-
|
|
10
|
-
== Comment
|
|
11
|
-
|
|
12
|
-
Comments can be added about everywhere. Two comment styles are
|
|
13
|
-
supported: Ruby style (`# ...`) and C style (`/* ... */`).
|
|
14
|
-
|
|
15
|
-
== Class Block
|
|
16
|
-
|
|
17
|
-
The class block is formed like this:
|
|
18
|
-
|
|
19
|
-
class CLASS_NAME
|
|
20
|
-
[precedence table]
|
|
21
|
-
[token declarations]
|
|
22
|
-
[expected number of S/R conflict]
|
|
23
|
-
[options]
|
|
24
|
-
[semantic value conversion]
|
|
25
|
-
[start rule]
|
|
26
|
-
rule
|
|
27
|
-
GRAMMARS
|
|
28
|
-
|
|
29
|
-
CLASS_NAME is a name of parser class.
|
|
30
|
-
This is the name of generating parser class.
|
|
31
|
-
|
|
32
|
-
If CLASS_NAME includes '::', Racc outputs module clause.
|
|
33
|
-
For example, writing "class M::C" causes creating the code below:
|
|
34
|
-
|
|
35
|
-
module M
|
|
36
|
-
class C
|
|
37
|
-
:
|
|
38
|
-
:
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
== Grammar Block
|
|
43
|
-
|
|
44
|
-
The grammar block describes the grammar
|
|
45
|
-
to be understood by parser. Syntax is:
|
|
46
|
-
|
|
47
|
-
(token): (token) (token) (token).... (action)
|
|
48
|
-
|
|
49
|
-
(token): (token) (token) (token).... (action)
|
|
50
|
-
| (token) (token) (token).... (action)
|
|
51
|
-
| (token) (token) (token).... (action)
|
|
52
|
-
|
|
53
|
-
(action) is an action which is executed when its (token)s are found.
|
|
54
|
-
(action) is a ruby code block, which is surrounded by braces:
|
|
55
|
-
|
|
56
|
-
{ print val[0]
|
|
57
|
-
puts val[1] }
|
|
58
|
-
|
|
59
|
-
Note that you cannot use '%' string, here document, '%r' regexp in action.
|
|
60
|
-
|
|
61
|
-
Actions can be omitted.
|
|
62
|
-
When it is omitted, '' (empty string) is used.
|
|
63
|
-
|
|
64
|
-
A return value of action is a value of left side value ($$).
|
|
65
|
-
It is value of result, or returned value by "return" statement.
|
|
66
|
-
|
|
67
|
-
Here is an example of whole grammar block.
|
|
68
|
-
|
|
69
|
-
rule
|
|
70
|
-
goal: definition rules source { result = val }
|
|
71
|
-
|
|
72
|
-
definition: /* none */ { result = [] }
|
|
73
|
-
| definition startdesig { result[0] = val[1] }
|
|
74
|
-
| definition
|
|
75
|
-
precrule # this line continue from upper line
|
|
76
|
-
{
|
|
77
|
-
result[1] = val[1]
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
startdesig: START TOKEN
|
|
81
|
-
|
|
82
|
-
You can use following special local variables in action.
|
|
83
|
-
|
|
84
|
-
* result ($$)
|
|
85
|
-
|
|
86
|
-
The value of left-hand side (lhs). A default value is val[0].
|
|
87
|
-
|
|
88
|
-
* val ($1,$2,$3...)
|
|
89
|
-
|
|
90
|
-
An array of value of right-hand side (rhs).
|
|
91
|
-
|
|
92
|
-
* _values (...$-2,$-1,$0)
|
|
93
|
-
|
|
94
|
-
A stack of values.
|
|
95
|
-
DO NOT MODIFY this stack unless you know what you are doing.
|
|
96
|
-
|
|
97
|
-
== Operator Precedence
|
|
98
|
-
|
|
99
|
-
This function is equal to '%prec' in yacc.
|
|
100
|
-
To designate this block:
|
|
101
|
-
|
|
102
|
-
prechigh
|
|
103
|
-
nonassoc '++'
|
|
104
|
-
left '*' '/'
|
|
105
|
-
left '+' '-'
|
|
106
|
-
right '='
|
|
107
|
-
preclow
|
|
108
|
-
|
|
109
|
-
`right' is yacc's %right, `left' is yacc's %left.
|
|
110
|
-
|
|
111
|
-
`=' + (symbol) means yacc's %prec:
|
|
112
|
-
|
|
113
|
-
prechigh
|
|
114
|
-
nonassoc UMINUS
|
|
115
|
-
left '*' '/'
|
|
116
|
-
left '+' '-'
|
|
117
|
-
preclow
|
|
118
|
-
|
|
119
|
-
rule
|
|
120
|
-
exp: exp '*' exp
|
|
121
|
-
| exp '-' exp
|
|
122
|
-
| '-' exp =UMINUS # equals to "%prec UMINUS"
|
|
123
|
-
:
|
|
124
|
-
:
|
|
125
|
-
|
|
126
|
-
== expect
|
|
127
|
-
|
|
128
|
-
Racc supports Bison's "expect" directive to declare the expected
|
|
129
|
-
number of shift/reduce conflicts.
|
|
130
|
-
|
|
131
|
-
class MyParser
|
|
132
|
-
expect 3
|
|
133
|
-
rule
|
|
134
|
-
:
|
|
135
|
-
:
|
|
136
|
-
|
|
137
|
-
Then warnings are issued only when the effective number of conflicts differs.
|
|
138
|
-
|
|
139
|
-
== Declaring Tokens
|
|
140
|
-
|
|
141
|
-
Declaring tokens avoids many bugs.
|
|
142
|
-
|
|
143
|
-
Racc outputs warnings for declared tokens that do not exist, or existing tokens not declared.
|
|
144
|
-
The syntax is:
|
|
145
|
-
|
|
146
|
-
token TOKEN_NAME AND_IS_THIS
|
|
147
|
-
ALSO_THIS_IS AGAIN_AND_AGAIN THIS_IS_LAST
|
|
148
|
-
|
|
149
|
-
== Options
|
|
150
|
-
|
|
151
|
-
You can write options for racc command in your racc file.
|
|
152
|
-
|
|
153
|
-
options OPTION OPTION ...
|
|
154
|
-
|
|
155
|
-
Options are:
|
|
156
|
-
|
|
157
|
-
* omit_action_call
|
|
158
|
-
|
|
159
|
-
omit empty action call or not.
|
|
160
|
-
|
|
161
|
-
* result_var
|
|
162
|
-
|
|
163
|
-
use/does not use local variable "result"
|
|
164
|
-
|
|
165
|
-
You can use 'no_' prefix to invert its meanings.
|
|
166
|
-
|
|
167
|
-
== Converting Token Symbol
|
|
168
|
-
|
|
169
|
-
Token symbols are, as default,
|
|
170
|
-
|
|
171
|
-
* naked token strings in racc file (TOK, XFILE, this_is_token, ...)
|
|
172
|
-
--> symbol (:TOK, :XFILE, :this_is_token, ...)
|
|
173
|
-
* quoted strings (':', '.', '(', ...)
|
|
174
|
-
--> same string (':', '.', '(', ...)
|
|
175
|
-
|
|
176
|
-
You can change this default using a "convert" block.
|
|
177
|
-
Here is an example:
|
|
178
|
-
|
|
179
|
-
convert
|
|
180
|
-
PLUS 'PlusClass' # We use PlusClass for symbol of `PLUS'
|
|
181
|
-
MIN 'MinusClass' # We use MinusClass for symbol of `MIN'
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
We can use almost all ruby value can be used by token symbol,
|
|
185
|
-
except 'false' and 'nil'. These are causes unexpected parse error.
|
|
186
|
-
|
|
187
|
-
If you want to use String as token symbol, special care is required.
|
|
188
|
-
For example:
|
|
189
|
-
|
|
190
|
-
convert
|
|
191
|
-
class '"cls"' # in code, "cls"
|
|
192
|
-
PLUS '"plus\n"' # in code, "plus\n"
|
|
193
|
-
MIN "\"minus#{val}\"" # in code, \"minus#{val}\"
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
== Start Rule
|
|
197
|
-
|
|
198
|
-
'%start' in yacc. This changes the start symbol.
|
|
199
|
-
|
|
200
|
-
start real_target
|
|
201
|
-
|
|
202
|
-
== User Code Block
|
|
203
|
-
|
|
204
|
-
A "User Code Block" is a piece of Ruby source code copied in the output.
|
|
205
|
-
There are three user code blocks, "header" "inner" and "footer".
|
|
206
|
-
|
|
207
|
-
User code blocks are introduced by four '-' at the beginning of a line,
|
|
208
|
-
followed by a single-word name:
|
|
209
|
-
|
|
210
|
-
---- header
|
|
211
|
-
ruby statement
|
|
212
|
-
ruby statement
|
|
213
|
-
ruby statement
|
|
214
|
-
|
|
215
|
-
---- inner
|
|
216
|
-
ruby statement
|
|
217
|
-
:
|
|
218
|
-
:
|