This application uses unix lexers/parsers (FLEX and BISON) to read a .txt list of commands and draw them to a .svg file.
- Open Linux terminal, navigate to the application folder and run ./logo < <commands> > <draw>
- <commands> Is the first file specified below. (You can use the star.txt file, included here!)
- <draw> Any name you want, plus the .svg format.
- You can write your own commands, as shown below.
- This program requires a command file
- make "<var_name> <var_value> -> lets you attribute a number to a variable.
- forward :<var_name> -> draws forward, given a variable.
- fd :<var_name> -> draws forward, given a variable.
- right :<var_name> -> rotate right (degrees), given a variable.
- rt :<var_name> -> rotate right (degrees), given a variable.
- repeat :<var_name> [<command> :<var_name> ...] -> repeat a command n times. Inside the brackets, you can rewrite any command, as many times as you want.
- Compile via Linux make command
- Use <make> to create the executable
- Use <make clean> to clean the objects/parser files
- To compile, you need Bison and Flex packages
- Bison: sudo apt-get install bison
- Flex: sudo apt-get install flex
- 0.0.1
- Create README.md
Eduardo Oliveira - eduardo.oliveira@ieee.org;