Skip to content

Commit fc37f9b

Browse files
committed
one
1 parent bd8070e commit fc37f9b

15 files changed

+159
-227
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "repr"
3-
version = "0.6.0"
3+
version = "0.7.0"
44
edition = "2021"
55
description = "The regular-expression-as-linear-logic interpretation and its implementation"
66
license = "MIT/Apache-2.0"

src/exponential.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
//! TODO(rnarkk) construct DFA from NFA
1+
//! TODO(rinarakaki) construct DFA from NFA

src/interval.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::repr::Repr::{self, Or, Zero};
1414
use crate::traits::Integral;
1515

1616
#[unconst]
17-
// TODO(rnarkk) Does negative Interval (self.1 < self.0) have use case?
17+
// TODO(rinarakaki) Does negative Interval (self.1 < self.0) have use case?
1818
#[derive_const(Clone, Default, PartialEq, PartialOrd, Ord)]
1919
#[derive(Copy, Debug, Eq)]
2020
pub struct Interval<I: ~const Integral>(pub I, pub I);
@@ -116,7 +116,7 @@ impl<I: ~const Integral> Interval<I> {
116116
// Self::full().sub(self)
117117
// }
118118

119-
// TODO(rnarkk) Why not simply `other.0 <= self.0 && self.1 <= other.1`
119+
// TODO(rinarakaki) Why not simply `other.0 <= self.0 && self.1 <= other.1`
120120
/// a ⊆ b
121121
pub const fn le(&self, other: &Self) -> bool {
122122
(other.0 <= self.0 && self.0 <= other.1) && (other.0 <= self.1 && self.1 <= other.1)

src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// #![no_std]
2+
#![feature(exact_size_is_empty)]
23
#![feature(pattern)]
34
#![feature(step_trait)]
45
#![feature(stmt_expr_attributes)]
@@ -22,9 +23,7 @@ mod context;
2223
mod conversion;
2324
mod functor;
2425
mod interval;
25-
mod operators;
2626
// mod partition;
27-
// mod pattern;
2827
// mod pool;
2928
// mod process;
3029
mod regex;

src/partition.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! <https://en.m.wikipedia.org/wiki/Partition_of_a_set>
22
//! <https://en.m.wikipedia.org/wiki/Covering_problems>
33
//! <https://en.m.wikipedia.org/wiki/Exact_cover>
4-
//!
4+
//!
55
//! <https://en.wikipedia.org/wiki/Interval_tree>
66
//! <https://en.wikipedia.org/wiki/Segment_tree>
77
//! <https://en.wikipedia.org/wiki/Range_tree>
@@ -11,8 +11,8 @@
1111
//! <https://en.wikipedia.org/wiki/Suffix_tree>
1212
//! <https://en.wikipedia.org/wiki/Suffix_automaton>
1313
//! <https://en.wikipedia.org/wiki/LCP_array>
14-
//!
15-
//! TODO(rnarkk)
14+
//!
15+
//! TODO(rinarakaki)
1616
//! - Uniqueness
1717
1818
use core::iter::FusedIterator;

src/quotient/search.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn build_aho_corasick(parsed: &Parsed<I>) -> Option<AhoCorasick<u32>> {
1313
if parsed.reprs.len() != 1 {
1414
return None;
1515
}
16-
// TODO(rnarkk)
16+
// TODO(rinarakaki)
1717
// let lits = match or_constants(&parsed.reprs[0]) {
1818
// None => return None,
1919
// Some(lits) => lits,

src/regex.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use regex::{Captures, Regex};
22
use unconst::unconst;
33

4-
use crate::{wrappers::empty, Repr};
4+
use crate::{wrappers::one, Repr};
55

66
#[unconst]
77
impl Repr<char> {
@@ -34,7 +34,7 @@ impl Repr<char> {
3434
},
3535
Repr::Interval(i) => format!("[{}-{}]", i.0, i.1),
3636
Repr::Mul(lhs, rhs) => format!("{}{}", lhs.to_regex_string(), rhs.to_regex_string()),
37-
Repr::Or(lhs, rhs) if lhs.as_ref() == &empty() => {
37+
Repr::Or(lhs, rhs) if lhs.as_ref() == &one() => {
3838
format!("({})?", rhs.to_regex_string())
3939
}
4040
Repr::Or(lhs, rhs) => format!("({}|{})", lhs.to_regex_string(), rhs.to_regex_string()),

0 commit comments

Comments
 (0)