Platzi Programming Language interpreter made in C++
- CMake 3.9
- GCC >= 11, Clang >= 13 or MSVC >= 19.29
sudo pacman -S cmake clangsudo apt install cmake clang-13sudo dnf install cmake clangYou need to install Xcode Installing CMake in OSX
You need to install Visual Studio 2017 or Visual Studio 2019
To build the project run the following commands from the root directory.
cmake -S . -B build/Release -DCMAKE_BUILD_TYPE=Release
cmake --build build/ReleaseTo build the project and run the test suite run the following commands from the root directory.
cmake -S . -B build/Debug -DCMAKE_BUILD_TYPE=Debug
cmake --build build/Debug
cd build/Debug
ctest -VVInside the build directory.
./lpp_interpreterBienvenido al Lenguaje de Programación Platzi.
Escribe un oración para comenzar.
>> variable a = 5;
>> variable b = 10;
>> a + b;
15
>> variable mayor_de_edad = procedimiento(edad) {
si(edad > 18) {
regresa verdadero;
} si_no {
regresa falso;
}
};
>> mayor_de_edad(20);
verdadero
>> mayor_de_edad(15);
falso
>> variable sumador = procedimiento(x) {
regresa procedimiento(y) {
regresa x + y;
};
};
>> variable suma_dos = sumador(2);
>> suma_dos(5);
7
>> variable suma_cinco = sumador(5);
>> suma_cinco(20);
25
>> mayor_de_edad(suma_cinco(20));
verdadero