This repository is dedicated to the development of a C++-based interpreted language. The main
branch contains the essential file/class skeletons, test cases, and various miscellaneous files related to the language, such as the parse tree and grammar. All other branches are dedicated to specific expansions of the language.
main
: Hosts all file/class skeletons, test cases, and miscellaneous files about the language (e.g., parse tree, grammar).- Other branches: Contain expansions of the language.
- Visual Studio Code (VSCode)
- Install the latest version of VSCode: Download VSCode
- GitHub Account
- Create a GitHub account if you don't have one.
- Contact the current project leader with your GitHub username to be added to the organization.
- Open VSCode
- Install the C/C++ Extension
- Go to the Extensions tab on the left sidebar.
- Search for "C/C++" and install the extension by Microsoft.
- Install a C++ Compiler
- Windows: Install
g++/gcc
via MinGW. Follow the installation instructions: MinGW Installation Guide - macOS: Install
Clang
. Follow the installation instructions: Clang on macOS - Linux: Install
g++/gcc
. Follow the installation instructions: GCC on Linux
- Windows: Install
-
Create a Simple Program
-
In VSCode, create a new file (e.g.,
hello.cpp
ortest.cpp
). -
Write the following code:
#include <iostream> int main() { std::cout << "Hello, World!" << std::endl; return 0; }
-
-
Save the File
-
Compile the Program
-
Open the VSCode terminal and type the following command:
g++ [your_program_name_here.cpp] -o test
-
-
Run the Program
-
In the terminal, run the compiled program:
./test
-
-
Check the Output
- If "Hello, World!" appears in the terminal, you've successfully installed the compiler and configured your environment.