Technical requirements
This chapter will take you through some real technical content. You can download this book’s examples from our GitHub repository: https://github.com/PacktPublishing/Build-Your-Own-Programming-Language-Second-Editon/tree/master/ch3. The Code in Action video for the chapter can be found here: https://bit.ly/3Fnn2c2.
To follow along, you will need to install some tools and download the examples. Let’s start by looking at how to install UFlex and JFlex. UFlex comes with Unicon and requires no separate installation.
For JFlex, download jflex-1.9.1.tar.gz
(or newer) from http://jflex.de/download.html. Depending on your version of the tar(1)
program, you may have to first decompress it with gunzip
, converting the file from a .tar.gz
file into a .tar
file. You can get gunzip
from places such as www.gzip.org/ or gnuwin32.sourceforge.net/packages/gzip.htm.
After that, you can then extract the files from the .tar
file with tar
. It will extract...