mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57: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
|
@ -6,7 +6,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/OwnPtr.h>
|
||||
|
||||
#include "AST/AST.h"
|
||||
#include "CompilationPipeline.h"
|
||||
#include "Forward.h"
|
||||
#include "Parser/ParseError.h"
|
||||
#include "Parser/Token.h"
|
||||
|
@ -58,4 +61,16 @@ public:
|
|||
Algorithm m_algorithm;
|
||||
};
|
||||
|
||||
class SpecParsingStep : public CompilationStep {
|
||||
public:
|
||||
SpecParsingStep();
|
||||
~SpecParsingStep();
|
||||
|
||||
void run(TranslationUnitRef translation_unit) override;
|
||||
|
||||
private:
|
||||
OwnPtr<XML::Document> m_document;
|
||||
ByteBuffer m_input;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue