Skip to content

Commit 753a5a3

Browse files
committed
Move compilation material in the bootstrap crate
1 parent afed2f0 commit 753a5a3

File tree

9 files changed

+24
-44
lines changed

9 files changed

+24
-44
lines changed

lang/src/meta/first.rs renamed to bootstrap/src/bootstrap/first.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
/*
2-
Copyright 2019-2025 Didier Plaindoux
2+
* Copyright 2019-2025 Didier Plaindoux
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
316

4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
16-
17-
use crate::meta::syntax::ASTParsec;
18-
use crate::meta::token::Token::{AllAtom, Atom};
19-
use crate::meta::token::{First, Token};
17+
use crate::bootstrap::syntax::ASTParsec;
18+
use crate::bootstrap::token::Token::{AllAtom, Atom};
19+
use crate::bootstrap::token::{First, Token};
2020

2121
impl First<char> for ASTParsec {
2222
fn first(&self) -> Vec<Token<char>> {

bootstrap/src/bootstrap/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@
1616

1717
pub mod parser;
1818
pub mod syntax;
19+
pub mod first;
20+
pub mod token;
File renamed without changes.

lang/tests/meta/first_test.rs renamed to bootstrap/tests/bootstrap/first_tests.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
/*
22
* Copyright 2019-2025 Didier Plaindoux
3-
=======
4-
* Copyright 2019-2021 Didier Plaindoux
5-
>>>>>>> 45ec19c (Manage compiler warnings and change License header)
63
*
74
* Licensed under the Apache License, Version 2.0 (the "License");
85
* you may not use this file except in compliance with the License.
@@ -19,9 +16,9 @@
1916

2017
#[cfg(test)]
2118
mod tests {
22-
use celma_lang::meta::syntax::ASTParsec::{PChar, PIdent};
23-
use celma_lang::meta::token::First;
24-
use celma_lang::meta::token::Token::{AllAtom, Atom};
19+
use celma_bootstrap::bootstrap::syntax::ASTParsec::{PChar, PIdent};
20+
use celma_bootstrap::bootstrap::token::First;
21+
use celma_bootstrap::bootstrap::token::Token::{AllAtom, Atom};
2522

2623
#[test]
2724
fn it_compute_first_for_ident() {

bootstrap/test/bootstrap/mod.rs renamed to bootstrap/tests/bootstrap/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
16+
pub mod first_tests;

bootstrap/test/lib.rs renamed to bootstrap/tests/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
* limitations under the License.
1515
*/
1616

17+
pub mod bootstrap;

lang/src/meta/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
limitations under the License.
1515
*/
1616

17-
pub mod first;
1817
pub mod parser;
1918
pub mod syntax;
20-
pub mod token;
2119
pub mod transpiler;

lang/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@
1616

1717
#![recursion_limit = "256"]
1818

19-
pub mod meta;
2019
pub mod parser;
2120
pub mod transpiler;

lang/tests/meta/mod.rs

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)