mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
31 lines
758 B
C++
31 lines
758 B
C++
#ifndef POLSERVER_USERFUNCTIONVISITOR_H
|
|
#define POLSERVER_USERFUNCTIONVISITOR_H
|
|
|
|
#include <EscriptGrammar/EscriptParserBaseVisitor.h>
|
|
|
|
#include "bscript/compiler/astbuilder/UserFunctionBuilder.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
class Profile;
|
|
class Report;
|
|
class SourceFileIdentifier;
|
|
class BuilderWorkspace;
|
|
|
|
class UserFunctionVisitor : public EscriptGrammar::EscriptParserBaseVisitor
|
|
{
|
|
public:
|
|
UserFunctionVisitor( const SourceFileIdentifier&, BuilderWorkspace& );
|
|
|
|
antlrcpp::Any visitFunctionDeclaration(
|
|
EscriptGrammar::EscriptParser::FunctionDeclarationContext* ) override;
|
|
|
|
private:
|
|
BuilderWorkspace& workspace;
|
|
|
|
UserFunctionBuilder tree_builder;
|
|
};
|
|
|
|
} // namespace Pol::Bscript::Compiler
|
|
|
|
#endif // POLSERVER_USERFUNCTIONVISITOR_H
|