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},