Skip to content
Snippets Groups Projects
Commit 5b7b7a85 authored by MarvelousAnything's avatar MarvelousAnything
Browse files

Initial Commit

parents
Branches
No related tags found
No related merge requests found
/target
/Cargo.lock
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
<?xml version="1.0" encoding="UTF-8"?>
<module type="CPP_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/desolation.iml" filepath="$PROJECT_DIR$/.idea/desolation.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
[package]
name = "desolation"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
mod node;
\ No newline at end of file
pub struct Node<'a> {
pub op: i32,
pub val: String,
pub sym: IdList,
pub fnum: i32,
pub line_no: i32,
pub left: &'a Node<'a>,
pub right: &'a Node<'a>,
pub next: &'a Node<'a>
}
pub struct IdList {
}
\ No newline at end of file
pub struct Lexer();
\ No newline at end of file
mod lex;
mod lexer;
mod ast;
pub fn add(left: usize, right: usize) -> usize {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment