From 2a0b9b5d21e2ec41bb833f5d932f77cab529b467 Mon Sep 17 00:00:00 2001 From: Guochao Ren Date: Tue, 30 Jul 2019 10:49:28 +0800 Subject: [PATCH] Fix typo --- MangoFix/Compiler/AST/MFInterpreter.h | 2 +- MangoFix/Compiler/AST/MFInterpreter.m | 2 +- MangoFix/Execute/MFContext.m | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MangoFix/Compiler/AST/MFInterpreter.h b/MangoFix/Compiler/AST/MFInterpreter.h index d4314f6..68256de 100644 --- a/MangoFix/Compiler/AST/MFInterpreter.h +++ b/MangoFix/Compiler/AST/MFInterpreter.h @@ -27,6 +27,6 @@ @property (strong, nonatomic) MFStack *stack; -- (void)compileSoruceWithString:(NSString *)source; +- (void)compileSourceWithString:(NSString *)source; @end diff --git a/MangoFix/Compiler/AST/MFInterpreter.m b/MangoFix/Compiler/AST/MFInterpreter.m index 92c9e80..3975e2a 100644 --- a/MangoFix/Compiler/AST/MFInterpreter.m +++ b/MangoFix/Compiler/AST/MFInterpreter.m @@ -62,7 +62,7 @@ - (MFStack *)stack{ } -- (void)compileSoruceWithString:(NSString *)source{ +- (void)compileSourceWithString:(NSString *)source{ extern void mf_set_source_string(char const *source); mf_set_source_string([source UTF8String]); extern void yyrestart (FILE * input_file ); diff --git a/MangoFix/Execute/MFContext.m b/MangoFix/Execute/MFContext.m index f21fe47..6938f48 100644 --- a/MangoFix/Execute/MFContext.m +++ b/MangoFix/Execute/MFContext.m @@ -43,7 +43,7 @@ - (void)evalMangoScriptWithRASEncryptedBase64String:(NSString *)rsaEncryptedBase return; } mf_set_current_compile_util(self.interpreter); - [self.interpreter compileSoruceWithString:mangoFixString]; + [self.interpreter compileSourceWithString:mangoFixString]; mf_set_current_compile_util(nil); mf_interpret(self.interpreter); } @@ -65,7 +65,7 @@ - (void)evalMangoScriptWithDebugURL:(NSURL *)url{ NSError *error; NSString *mangoFixString = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:&error]; mf_set_current_compile_util(self.interpreter); - [self.interpreter compileSoruceWithString:mangoFixString]; + [self.interpreter compileSourceWithString:mangoFixString]; mf_set_current_compile_util(nil); mf_interpret(self.interpreter); }