Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MangoFix/Compiler/AST/MFInterpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@

@property (strong, nonatomic) MFStack *stack;

- (void)compileSoruceWithString:(NSString *)source;
- (void)compileSourceWithString:(NSString *)source;

@end
2 changes: 1 addition & 1 deletion MangoFix/Compiler/AST/MFInterpreter.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
4 changes: 2 additions & 2 deletions MangoFix/Execute/MFContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down