Question
Flex File Your Flex file should define the following tokens: POINT. When we match the command to plot a point. VECTOR. When we match the
Flex File
Your Flex file should define the following tokens:
POINT. When we match the command to plot a point.
VECTOR. When we match the command to draw a line.
CIRCLE. When we match the command to draw a circle.
BLOCK. When we match the command to draw a rectangle.
COLOR_CHANGE. Matches the command to change colors.
A way to match tabs, spaces, or newlines, and to ignore them.
A way to match anything not listed above, and to tell the user they messed up.
If this could be done in flex file/code that would be awesome! Regex statements need to be used! I NEED these EXACT tokens written out if possible!!
Thank you in advance!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started