Skip to content

Commit

Permalink
refactor: ⬆️ 更新上游Narsese、NAVM依赖到最新版本
Browse files Browse the repository at this point in the history
- ✅兼容最新版本的Narsese.rs、NAVM.rs
  • Loading branch information
ARCJ137442 committed Jun 13, 2024
1 parent 974f88e commit 04d35a5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 17 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "babel_nar"
version = "0.24.3"
version = "0.24.4"
edition = "2021"
description = """
Implementation and application supports of the NAVM model
Expand Down
2 changes: 1 addition & 1 deletion src/cin_implements/cxin_js/translators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use crate::runtimes::TranslateError;
use anyhow::Result;
use narsese::{
conversion::string::impl_lexical::{format_instances::FORMAT_ASCII, structs::ParseResult},
conversion::string::impl_lexical::{format_instances::FORMAT_ASCII, ParseResult},
lexical::Narsese,
};
use navm::{
Expand Down
9 changes: 5 additions & 4 deletions src/cin_implements/ona/dialect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
use crate::runtimes::TranslateError;
use anyhow::{Ok, Result};
use narsese::{
conversion::string::{
impl_enum::format_instances::FORMAT_ASCII, impl_lexical::structs::MidParseResult,
},
lexical::{Budget, Narsese, Term, Truth},
api::NarseseOptions,
conversion::string::impl_enum::format_instances::FORMAT_ASCII,
lexical::{Budget, Narsese, Punctuation, Stamp, Term, Truth},
};
use pest::{iterators::Pair, Parser};
use pest_derive::Parser;

type MidParseResult = NarseseOptions<Budget, Term, Punctuation, Stamp, Truth>;

#[derive(Parser)] // ! ↓ 必须从项目根目录开始
#[grammar = "src/cin_implements/ona/dialect_ona.pest"]
pub struct DialectParser;
Expand Down
9 changes: 5 additions & 4 deletions src/cin_implements/opennars/dialect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
use crate::runtimes::TranslateError;
use anyhow::{Ok, Result};
use narsese::{
conversion::string::{
impl_enum::format_instances::FORMAT_ASCII, impl_lexical::structs::MidParseResult,
},
lexical::{Budget, Narsese, Term, Truth},
api::NarseseOptions,
conversion::string::impl_enum::format_instances::FORMAT_ASCII,
lexical::{Budget, Narsese, Punctuation, Stamp, Term, Truth},
};
use pest::{iterators::Pair, Parser};
use pest_derive::Parser;

pub(super) type MidParseResult = NarseseOptions<Budget, Term, Punctuation, Stamp, Truth>;

#[derive(Parser)] // ! ↓ 必须从项目根目录开始
#[grammar = "src/cin_implements/opennars/dialect_opennars.pest"]
pub struct DialectParser;
Expand Down

0 comments on commit 04d35a5

Please sign in to comment.