mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:57:46 +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
|
@ -6,9 +6,11 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/OwnPtr.h>
|
||||
#include <LibCpp/AST.h>
|
||||
#include <LibCpp/Parser.h>
|
||||
|
||||
#include "Forward.h"
|
||||
#include "CompilationPipeline.h"
|
||||
|
||||
namespace JSSpecCompiler {
|
||||
|
||||
|
@ -31,4 +33,16 @@ private:
|
|||
RefPtr<Cpp::FunctionDeclaration> m_function;
|
||||
};
|
||||
|
||||
class CppParsingStep : public CompilationStep {
|
||||
public:
|
||||
CppParsingStep();
|
||||
~CppParsingStep();
|
||||
|
||||
void run(TranslationUnitRef translation_unit) override;
|
||||
|
||||
private:
|
||||
OwnPtr<Cpp::Parser> m_parser;
|
||||
ByteBuffer m_input;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue