From e8fbae9837e463d2b4e694df7a7daa45cbf1c5e0 Mon Sep 17 00:00:00 2001 From: John Breaux Date: Thu, 1 Feb 2024 12:37:59 -0600 Subject: [PATCH] Update copyright header --- msp430-asm/src/main.rs | 2 ++ src/assembler.rs | 2 ++ src/lexer.rs | 1 + src/lexer/token.rs | 1 + src/lib.rs | 3 ++- src/parser.rs | 1 + src/parser/ast.rs | 1 + src/preprocessor.rs | 2 ++ src/span.rs | 2 ++ 9 files changed, 14 insertions(+), 1 deletion(-) diff --git a/msp430-asm/src/main.rs b/msp430-asm/src/main.rs index 2a6fefa..1f638c3 100644 --- a/msp430-asm/src/main.rs +++ b/msp430-asm/src/main.rs @@ -1,3 +1,5 @@ +// © 2023-2024 John Breaux +//See LICENSE.md for license //! Simple frontend for the assembler #![feature(decl_macro)] use argp::parse_args_or_exit; diff --git a/src/assembler.rs b/src/assembler.rs index a6e342d..191ccf0 100644 --- a/src/assembler.rs +++ b/src/assembler.rs @@ -1,3 +1,5 @@ +// © 2023-2024 John Breaux +//See LICENSE.md for license //! Assembles a binary using the given [AST](crate::parser::ast) use error::{AResult, ErrorKind::*}; diff --git a/src/lexer.rs b/src/lexer.rs index a4c1290..5013e33 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -1,4 +1,5 @@ // © 2023-2024 John Breaux +//See LICENSE.md for license //! The [Lexer] turns a [sequence of characters](str) into a stream of //! [lexically-tagged tokens](token) diff --git a/src/lexer/token.rs b/src/lexer/token.rs index 119afb6..33a3ca0 100644 --- a/src/lexer/token.rs +++ b/src/lexer/token.rs @@ -1,4 +1,5 @@ // © 2023-2024 John Breaux +//See LICENSE.md for license //! A [Token] is a [semantically-tagged](TokenKind) [sequence of characters](str) and a [Span] //! //! [Tokens](Token) are a borrowed, and cannot outlive their source slice (lifetime `'t`) diff --git a/src/lib.rs b/src/lib.rs index 88338f5..a4afd9a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ -// © 2023 John Breaux +// © 2023-2024 John Breaux +//See LICENSE.md for license //! A bare-bones toy assembler for the TI MSP430, for use in MicroCorruption //! //! This project aims to assemble any valid msp430 instructions, while including important quality diff --git a/src/parser.rs b/src/parser.rs index 32a0744..9f49ccf 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1,4 +1,5 @@ // © 2023-2024 John Breaux +//See LICENSE.md for license //! Parses [`Tokens`](crate::lexer::token::Token) into an [abstract syntax tree](ast) pub mod ast; diff --git a/src/parser/ast.rs b/src/parser/ast.rs index 8337bb5..afd1fce 100644 --- a/src/parser/ast.rs +++ b/src/parser/ast.rs @@ -1,4 +1,5 @@ // © 2023-2024 John Breaux +//See LICENSE.md for license /// Represents MSP430 instructions, use crate::{ lexer::token::{self, Reg, Token}, diff --git a/src/preprocessor.rs b/src/preprocessor.rs index 9df3bfe..a340154 100644 --- a/src/preprocessor.rs +++ b/src/preprocessor.rs @@ -1,4 +1,6 @@ // © 2023-2024 John Breaux +//See LICENSE.md for license +//! Preprocesses a token stream by removing and replacing tokens according to `.define` directives use crate::{ lexer::{ diff --git a/src/span.rs b/src/span.rs index 4ca993b..379f691 100644 --- a/src/span.rs +++ b/src/span.rs @@ -1,3 +1,5 @@ +// © 2023-2024 John Breaux +//See LICENSE.md for license //! A [Span] is a [Range] that does not implement [Iterator]. It is a [Copy] type. use std::{ fmt::{Debug, Display},