add more unit tests for lexing
This commit is contained in:
parent
172aa4ea4b
commit
34573a999e
3 changed files with 107 additions and 3 deletions
|
|
@ -20,7 +20,6 @@ use std::boxed::Box;
|
|||
|
||||
|
||||
// Container
|
||||
#[derive(Debug)]
|
||||
pub enum Ctr {
|
||||
SYMBOL(String),
|
||||
STRING(String),
|
||||
|
|
@ -35,7 +34,6 @@ pub enum Ctr {
|
|||
* Holds two Containers.
|
||||
* Basic building block for more complex data structures.
|
||||
*/
|
||||
#[derive(Debug)]
|
||||
pub struct Cell {
|
||||
/* "Cell Address Register"
|
||||
* Historical way of referring to the first value in a cell.
|
||||
|
|
|
|||
|
|
@ -85,7 +85,8 @@ fn process(document: String) -> Result<Box<Cell>, String> {
|
|||
needs_alloc = true;
|
||||
// reset comment line status
|
||||
if delim == '\n' {
|
||||
ign = false
|
||||
ign = false;
|
||||
continue;
|
||||
}
|
||||
|
||||
// catch too many list end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue