Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : typo #9

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
PRINT_COMMAND="Your Print Command!"
VARIABLE_DECLARE="Your Variable declaration Command!"
VARIABLE_DECLARE="Your Variable declaration Command!"

2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
name: DuckLang
name: DuckLang
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
venv
.env

__pycache__/
*.pyc
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@

## 🛠️ Prerequisites


- [Python](https://nodejs.org/) installed on your machine 🐍
- [Git](https://git-scm.com/) installed on your machine 🐙

Expand Down
1 change: 1 addition & 0 deletions docs/Rules.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## KeyWords

- For Print -> ```quack``` (eg. quack Hello World )

1 change: 1 addition & 0 deletions lib/syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
var_command = os.getenv("VARIABLE_DECLARE", "UNKNOWN")



syntax = {
"name": name,
"PRINT_COMMAND": print_command,
Expand Down
1 change: 0 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@



# Test code
source_code = '''
quack("Hello World")
duck my_int = 42
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
python-dotenv==1.0.1


4 changes: 4 additions & 0 deletions scripts/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def printName(values):
return values


1 change: 0 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash


detect_os() {
case "$(uname -s)" in
Linux*) echo "Linux";;
Expand Down
3 changes: 3 additions & 0 deletions src/interpreter/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@



1 change: 1 addition & 0 deletions src/lexer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# Importing token types dictionary
from src.lexer.token_types import TOKEN_TYPES


# Retrieve the print command syntax from the syntax dictionary
print_command = syntax.get("PRINT_COMMAND", "No Name Defined")
# Retrieve the variable declaration command syntax from the syntax dictionary
Expand Down
2 changes: 1 addition & 1 deletion src/lexer/token_types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"IDENTIFIER": 'IDENTIFIER',
"EQUALS": 'EQUALS',
"UNKNOWN": 'UNKNOWN'
}
}
3 changes: 3 additions & 0 deletions src/parser/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@