tcr / corollary

Cross-compiler from Haskell to Rust, plus parser-haskell.
73 stars 5 forks source link

Remove parser expression errors #67

Open tcr opened 7 years ago

tcr commented 7 years ago

There are a few places in translated code in which / Expr::Error / is printed instead of whatever value it should have been. These should be diagnosed and cleaned up.

In parser-c:

src/analysis/ast_analysis.rs
62:    /* Expr::Error */ Error
688:            /* Expr::Error */ Error

src/analysis/const_eval.rs
260:            /* Expr::Error */ Error

src/analysis/decl_analysis.rs
95:    /* Expr::Error */ Error
376:    /* Expr::Error */ Error

src/analysis/trav_monad.rs
140:            /* Expr::Error */ Error

src/analysis/type_check.rs
139:    /* Expr::Error */ Error
209:            /* Expr::Error */ Error
276:            /* Expr::Error */ Error
279:            /* Expr::Error */ Error
282:            /* Expr::Error */ Error
285:            /* Expr::Error */ Error
301:            /* Expr::Error */ Error
407:                let charType = /* Expr::Error */ Error;

src/analysis/type_utils.rs
94:    /* Expr::Error */ Error
98:    /* Expr::Error */ Error

src/analysis/sem_rep.rs
347:    /* Expr::Error */ Error

src/data/input_stream.rs
79:            /* Expr::Error */ Error

src/data/node.rs
45:            /* Expr::Error */ Error

src/parser/lexer.rs
63:    /* Expr::Error */ Error
67:    /* Expr::Error */ Error

src/syntax/constants.rs
108:            /* Expr::Error */ Error
143:            /* Expr::Error */ Error

src/syntax/preprocess.rs
61:    /* Expr::Error */ Error

src/syntax/utils.rs
106:            /* Expr::Error */ Error

In rust-corrode:

src/corrode/c.rs
430:            /* Expr::Error */ Error
526:            /* Expr::Error */ Error
803:            /* Expr::Error */ Error
820:            /* Expr::Error */ Error
823:            /* Expr::Error */ Error