Starting from:

$24.99

ASSIGNMENT 1: SQL Lexer

ASSIGNMENT 1:

1. Write a lex/flex code for a language (SQL) having the following features:
 CREATE TABLE <table name ( <attribute <column type <constraints, …)  SELECT <query query may contains nested SELECT <query  INSERT INTO <table name<optional attributes VALUES <value, …  UPDATE <table name SET <attribute=value, … WHERE <conditions conditions may contain nested SELECT <query  DELETE FROM <table name WHERE <conditions  DROP TABLE <table name  ALTER TABLE <table name DROP COLUMN <column name  ALTER TABLE <table name ADD <column name <column definition
2. Also write a C code for the accepter for the features as explained.

More products