Skip to content

DeepXx86/DeepX-Lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

47 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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
  • 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

Screenshot 2024-09-25 180550

About

My own programming language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published