Skip to content

Commit

Permalink
Changed Interpreter.interpret return
Browse files Browse the repository at this point in the history
  • Loading branch information
ya-ilya committed Apr 7, 2024
1 parent d56e982 commit 753b62a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A simple programming language written in Kotlin
- Add boolean and numeric operations
- Add more libraries and functions

### Example
### Examples
#### Factorial recursive function
```
import 'io', 'logic', 'math';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object Interpreter {
val result = statement.interpret(context)

if (result is InterpretResult.Return) {
return result
return result.value
}
}

Expand Down

0 comments on commit 753b62a

Please sign in to comment.