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:
parent
867ce0df52
commit
6ed069ea8d
10 changed files with 226 additions and 33 deletions
|
@ -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:
|
||||
|
|
|
@ -24,6 +24,8 @@ namespace JSSpecCompiler {
|
|||
// ```
|
||||
class IfBranchMergingPass : public GenericASTPass {
|
||||
public:
|
||||
inline static constexpr StringView name = "if-branch-merging"sv;
|
||||
|
||||
using GenericASTPass::GenericASTPass;
|
||||
|
||||
protected:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue