https://github.com/deepxx86/deepx-lang
My own programming language
https://github.com/deepxx86/deepx-lang
haskell own-language programming-language
Last synced: 5 months ago
JSON representation
My own programming language
- Host: GitHub
- URL: https://github.com/deepxx86/deepx-lang
- Owner: DeepXx86
- Created: 2024-09-03T13:47:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-21T11:59:32.000Z (10 months ago)
- Last Synced: 2025-05-07T04:33:58.042Z (8 months ago)
- Topics: haskell, own-language, programming-language
- Language: Haskell
- Homepage:
- Size: 5.09 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## DeepX-Lang is the first programming language I created 😳😅 ( Project is not finished. 💀🤫 )
-This programming language is simple, and I don't think it can be used in real projects. 🤓
-inspiration --> (javascript, lua, python, haskell, go-lang, uwupp,z#)
# Examples ->
### Print 🤡
~~~~
write("Hello from DeepX")
~~~~
### Wait 🤓
~~~~
a = 0
while ( a < 100 ){
write("wait test")
wait(1000) // 1000 = 1 second because it's a microsecond.
}
~~~~
### User_Input 🥱
~~~~
func Random(){
input = getLine("Chosse 1-10 : ")
if (input == 10){
write("lucky")
}
else {
a = 0
while ( a < 1000000 ){
write("LOL")
wait(1)
}
}
}
Random()
~~~~
### If / Else 😳
~~~~
func If_Else(){
write("Give me a-z")
Skibidi = getLine("( a - z only ): ")
if ( Skibidi == "z" ){
write("Correct")
}
else {
write("nah it", "z")
}
}
If_Else()
~~~~
## Creating Your Own Programming Language Using My Source Code
- Install Stack & Haskell [Install Stack & Haskell](https://www.haskell.org/downloads/)
- Create a new project --> stack new DeepX && cd DeepX
- Update stack.yaml --> resolver: lts-18.28
- Delete the app folder & Create a new Main.hs file in the src directory
Tree :
~~~~
Deepx/
├── src/
│ ├── AST.hs
│ ├── Lexer.hs
│ ├── Parser.hs
│ ├── Evaluator.hs
│ └── Main.hs
├── package.yaml
└── stack.yaml
~~~~
