1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

JSSpecCompiler: Provide an adequate command line interface

This commit is contained in:
Dan Klishch 2023-10-01 23:26:56 -04:00 committed by Andrew Kaster
parent 867ce0df52
commit 6ed069ea8d
10 changed files with 226 additions and 33 deletions

View file

@ -17,6 +17,8 @@ namespace JSSpecCompiler {
// `f(a, b, c, d)` as `f "function_call_operator" (a, (b, (c, d))))`.
class FunctionCallCanonicalizationPass : public GenericASTPass {
public:
inline static constexpr StringView name = "function-call-canonicalization"sv;
using GenericASTPass::GenericASTPass;
protected:

View file

@ -24,6 +24,8 @@ namespace JSSpecCompiler {
// ```
class IfBranchMergingPass : public GenericASTPass {
public:
inline static constexpr StringView name = "if-branch-merging"sv;
using GenericASTPass::GenericASTPass;
protected:

View file

@ -14,6 +14,8 @@ namespace JSSpecCompiler {
// UnresolvedReference nodes with either SlotName, Variable, or FunctionPointer nodes.
class ReferenceResolvingPass : public GenericASTPass {
public:
inline static constexpr StringView name = "reference-resolving"sv;
using GenericASTPass::GenericASTPass;
protected: