Skip to content

Efendo/ExecScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<style> a[href='https://efendo.github.io/ExecScript/'] { pointer-events: none; cursor: default; visibility: hidden; } </style>

ExecScript

sounds like the js function, is a cpp dialect

this is a programming language called ExecScript thats like cpp but supposed to be easier

Docs

What is ExecScript?

ExecScript is a C++ Dialect that's intended to make C++ look a little bit like Basic.

Here's some example code:

main {
    print "This is ExecScript!";
    print 5 mod 6;
    print 5 is 5;
}

Requirements and notes

  • GCC, to confirm that you have it run g++ -v

Install ExecScript

execute this command to install ExecScript:

# Using git
git clone https://github.com/Efendo/ExecScript/
# Using gh CLI
gh repo clone Efendo/ExecScript
Note: it has been compiled on x86-64 mac, you may have to recompile it using: cd ExecScript && make -s && cd ..

then add it to your path

export PATH="$PATH:$HOME/ExecScript/bin/"

Commands

To compile a file, type:

excs -c [FileToCompile] [OutputFile]

To compile a file to C++, type:

excs -cpp [FileToCompile] [OutputFile]

To get help, type:

excs -h

to make an excs project (you dont need to), type:

excs -m [ProjectName]
to run it (the project), type ./run

Trouble shooting / error numbers

err127

-File not found

err349

-File is empty

Keywords / Macros

  • "str [VarName]" A macro for std::string

  • "print [Content]" A Macro for std::cout<<html

  • "input [Var]" A macro for std::cin>>

  • "pointer [VarName]" A macro for char*

  • "clr_text" A macro to clear the console

  • "NumPointer [VarName]" a macro for int*

  • "is" a macro for ==

  • "isnt" a macro for !=

  • "mod" a macro for % (modulo)

  • "blueprint" a macro for class

  • "elif" its for "else if"

  • "error" a macro for std::cerr

Links

Efendo's Github

View Website

View on Github

Try it on replit

About

sounds like the js function, is a cpp dialect

Resources

Stars

Watchers

Forks

Packages

No packages published