hrw

Results 8 issues of hrw

When trying to print something without trailing newline, there's no output in the terminal. But with trailing newline, it's fine.

# System Information * cargo 1.36.0-nightly (b6581d383 2019-04-16) * rustc 1.36.0-nightly (6d599337f 2019-04-22) * Linux 4.18.0-18-generic 18.04.1-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux # description ### Command: ```cargo test``` ### Test...

Strings are expensive to compare and store, so in the lexer stage, should convert string to number, use number to compare, store the string with it's index as reference to...

DAG need to be added to avoid same expression multi-node. If there's already an identical expression node exists, just return it, do not generate new node.

Now crust just use a simple AST Printer, which uses the depth as its parameter to control its indention level, but should be improved by ignoring some node information which...

read environment variables and find files under C_INCLUDE_PATH

Add global set to track every include file path+name, and judge whether it has been included. Skip the files that have been already included.

enhancement
CPP

Should add more information in [lexer::TokType](https://github.com/onehr/crust/blob/dba8091df71d7b3abd445dab726ea93dd722aaac/src/lexer.rs#L2), it's useful to track the token position in file when the compiler fails to compile the source code, I think file name, line number,...