Skip to content

Commit 28d1e0d

Browse files
committed
fix: introducing syntax errors
1 parent b134ee0 commit 28d1e0d

File tree

74 files changed

+462
-505
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+462
-505
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "monkey_interpreter"
3-
version = "0.15.1"
3+
version = "0.15.2"
44
description = "Implementation of an interpreter for the Monkey language written in Rust, currently under active development."
55
authors = ["C <[email protected]>"]
66
edition = "2021"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Monkey Interpreter
2-
[![pipeline status](https://img.shields.io/badge/Version-0.15.1-blue)](https://gitlab.com/DeveloperC/monkey_interpreter/commits/master) [![pipeline status](https://gitlab.com/DeveloperC/monkey_interpreter/badges/master/pipeline.svg)](https://gitlab.com/DeveloperC/monkey_interpreter/commits/master) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) [![License: AGPL v3](https://img.shields.io/badge/License-AGPLv3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
2+
[![pipeline status](https://img.shields.io/badge/Version-0.15.2-blue)](https://gitlab.com/DeveloperC/monkey_interpreter/commits/master) [![pipeline status](https://gitlab.com/DeveloperC/monkey_interpreter/badges/master/pipeline.svg)](https://gitlab.com/DeveloperC/monkey_interpreter/commits/master) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) [![License: AGPL v3](https://img.shields.io/badge/License-AGPLv3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
33

44

55
![The Monkey Programming Language Logo](https://cloud.githubusercontent.com/assets/1013641/22617482/9c60c27c-eb09-11e6-9dfa-b04c7fe498ea.png)

src/evaluator/expression/call/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::evaluator::model::object::{ErrorType, Object};
22
use crate::evaluator::Evaluator;
3-
use crate::syntax_analysis::model::abstract_syntax_tree::syntax_tree_node::Expression;
3+
use crate::syntax_analysis::model::syntax_tree_node::Expression;
44

55
impl Evaluator {
66
pub(super) fn evaluate_call_expression(
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
source: src/evaluator/expression/call/tests/mod.rs
3-
expression: "evaluator.evaluate(crate::syntax_analysis::SyntaxAnalysis::from(crate::lexical_analysis::LexicalAnalysis::from(code)))"
3+
expression: "evaluator.evaluate(crate::syntax_analysis::SyntaxAnalysis::from(crate::lexical_analysis::LexicalAnalysis::from(code).unwrap()).unwrap())"
44

55
---
6-
Null
6+
Integer {
7+
value: 13,
8+
}

src/evaluator/expression/function/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::evaluator::model::object::Object;
22
use crate::evaluator::Evaluator;
3-
use crate::syntax_analysis::model::abstract_syntax_tree::syntax_tree_node::Block;
3+
use crate::syntax_analysis::model::syntax_tree_node::Block;
44

55
impl Evaluator {
66
pub(super) fn evaluate_function_expression(

src/evaluator/expression/if_expression/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::evaluator::model::object::Object;
22
use crate::evaluator::Evaluator;
3-
use crate::syntax_analysis::model::abstract_syntax_tree::syntax_tree_node::{Block, Expression};
3+
use crate::syntax_analysis::model::syntax_tree_node::{Block, Expression};
44

55
impl Evaluator {
66
pub(super) fn evaluate_if_expression(

src/evaluator/expression/infix/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::evaluator::model::object::{ErrorType, Object};
22
use crate::evaluator::Evaluator;
33
use crate::lexical_analysis::model::token::Token;
4-
use crate::syntax_analysis::model::abstract_syntax_tree::syntax_tree_node::Expression;
4+
use crate::syntax_analysis::model::syntax_tree_node::Expression;
55

66
impl Evaluator {
77
pub(super) fn evaluate_infix_expression(

src/evaluator/expression/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::evaluator::model::object::Object;
22
use crate::evaluator::Evaluator;
3-
use crate::syntax_analysis::model::abstract_syntax_tree::syntax_tree_node::*;
3+
use crate::syntax_analysis::model::syntax_tree_node::*;
44

55
mod boolean;
66
mod call;

src/evaluator/expression/prefix/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::evaluator::model::object::{ErrorType, Object};
22
use crate::evaluator::Evaluator;
33
use crate::lexical_analysis::model::token::Token;
4-
use crate::syntax_analysis::model::abstract_syntax_tree::syntax_tree_node::Expression;
4+
use crate::syntax_analysis::model::syntax_tree_node::Expression;
55

66
impl Evaluator {
77
pub(super) fn evaluate_prefix_expression(

0 commit comments

Comments
 (0)