mirror of
https://github.com/Noratrieb/ub.git
synced 2026-01-14 16:45:05 +01:00
why parser bad broken stupid
This commit is contained in:
parent
8a52378d4d
commit
83676704e1
4 changed files with 127 additions and 79 deletions
|
|
@ -17,10 +17,11 @@ pub fn parse(_str: &str, _file_name: PathBuf) -> Result<ast::File, ()> {
|
|||
|
||||
pub fn test() {
|
||||
let lexer = Token::lexer(
|
||||
"fn foo() {
|
||||
1 + 5;
|
||||
struct test {}
|
||||
}",
|
||||
"
|
||||
fn main() {
|
||||
if 1 { 5 + 5; }
|
||||
}
|
||||
",
|
||||
);
|
||||
let len = lexer.source().len();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue