Parse a given text file and determine if the number is


Parse a given text file and determine if the number is either valid or invalid using lex.Integers hexadecimals and decimals are considered valid, everything else is invalid.

The given text file contains these numbers:

-0xA98F 0XA98H 0XA9B 123a 123 goodbye 5

Example:

-0xA98F Valid

0XA98H Invalid

0XA9B Valid

123 Valid

123a Invalid

goodbye invalid

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Parse a given text file and determine if the number is
Reference No:- TGS02881970

Expected delivery within 24 Hours