- CMake version 3.18 or higher
- Flex library
- Bison Library
-
Navigate to the project directory
Use the
cd
command to navigate into the project directory.cd hy340
-
Create a build directory
It's a good practice to create a separate directory for the build files. You can do this with the following command:
mkdir build
-
Navigate to the build directory
Use the
cd
command to navigate into the build directory.cd build
-
Run CMake
Now you can run CMake to generate the build files. Use the following command:
cmake ..
The
..
tells CMake to look for aCMakeLists.txt
file in the parent directory. -
Build the project
Finally, you can build the project with the following command:
make
This will build the project and create an executable file in the build directory.
After building the project, you can run it with the following command:
./hy340 <path_to_input_file>
This will run the hy340
executable. Replace <path_to_input_file>
with the path to your input file.