Doc clean up

This commit is contained in:
Eryn Wells 2016-12-24 09:05:10 -07:00
parent d4dee92904
commit f7cedb3536
2 changed files with 7 additions and 6 deletions

View file

@ -1,6 +1,6 @@
/// Character Sets /* charset.rs
/// * Eryn Wells <eryn@erynwells.me>
/// Sets of characters valid for making up tokens. */
use std::collections::HashSet; use std::collections::HashSet;
use std::iter::FromIterator; use std::iter::FromIterator;

View file

@ -1,4 +1,6 @@
//! # Lexer /* lexer.rs
* Eryn Wells <eryn@erynwells.me>
*/
pub mod token; pub mod token;
mod char; mod char;
@ -58,8 +60,7 @@ impl Lexer {
println!("> begin={}", self.begin); println!("> begin={}", self.begin);
} }
/// Get the substring between the two input indexes. This is the value to give to a new Token /// Get the substring between the two input indexes. This is the value to give to a new Token instance.
/// instance.
fn value(&self) -> String { fn value(&self) -> String {
self.input[self.begin .. self.forward].to_string() self.input[self.begin .. self.forward].to_string()
} }