Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
d0a9b6b
Update: Added Compiler Test Examples
PranavVerma-droid Jul 12, 2025
44c53e2
Update: Added Compiler Dependencies, Refactored Codegen from Beginning.
PranavVerma-droid Jul 12, 2025
7af9bec
Update: Enhance code generation with new CodeGenerator struct and met…
PranavVerma-droid Jul 13, 2025
f8a9a7e
Update: Implement compile_when_statement for conditional statement ha…
PranavVerma-droid Jul 17, 2025
7697fc9
Update: Implement compile_expression method for handling various expr…
PranavVerma-droid Jul 17, 2025
2b71a6b
Update: Add `generate_print_call `method for printing float values an…
PranavVerma-droid Aug 2, 2025
a9c5c14
Update: Add `interpret` method for executing program statements with …
PranavVerma-droid Aug 2, 2025
f7dfe1c
Update: Implement `interpret_statement` method for executing various …
PranavVerma-droid Aug 2, 2025
c54dd64
Update: Implement evaluate_expression method for handling various exp…
PranavVerma-droid Aug 2, 2025
a0dd0c4
Fix: Fix typos and improve formatting in code generation methods
PranavVerma-droid Aug 2, 2025
51bb32c
Fix: Correct variable type name and syntax errors in CodeGenerator; u…
PranavVerma-droid Aug 2, 2025
5272f57
Merge branch 'compiler-init' of https://github.com/PranavVerma-droid/…
PranavVerma-droid Aug 2, 2025
71ddcc9
Fix: Correct indentation and formatting for mode selection in main fu…
PranavVerma-droid Aug 2, 2025
788c7df
Refactor: Improve debug output and error handling in main function; s…
PranavVerma-droid Aug 2, 2025
11aa0d6
Fix: Add *.ll to .gitignore to exclude LLVM intermediate files from v…
PranavVerma-droid Aug 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
VERSIONING/
VERSIONING/
*.ll
154 changes: 154 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,14 @@
name = "delta"
version = "1.0.0"
edition = "2024"
description = "Delta - A natural language inspired programming language"
authors = ["Pranav Verma <pranav@verma.net.in>"]

[[bin]]
name = "delta"
path = "src/main.rs"

[dependencies]
inkwell = { version = "0.4", features = ["llvm17-0"] }
# Future dependencies for LLVM backend
# llvm-sys = "170"
4 changes: 4 additions & 0 deletions examples/compile_test.de
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
let x be 10
let y be 5
let result be x + y * 2
show result
3 changes: 3 additions & 0 deletions examples/hello_compiled.de
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
show "Hello, compiled Delta language!"
let message be "This is a message from the compiled code."
show message
Loading
Loading