Re: How to write an SQL Interpreter/Compiler?

From: Volker Hetzer <volker.hetzer_at_ieee.org>
Date: Mon, 08 Jan 2001 13:11:01 +0100
Message-ID: <3A59AE55.D6E027FA_at_ieee.org>


oliver Grampp wrote:
>
> Hallo,
>
> i don't no where to ask my question. So i'm sorry if i'm wrong here.
>
> i have written my own persistence tool in java. The objects can be
> stored in Files too.
> For searching and selecting Objects i want to use OQL. So i want to
> write an interpreter or compiler for that language that executes theses
> query statements on the pool of objects and returns the result.
What is OQL?

> First of all i am not sure if i should write an interpreter or a
> compiler for the query language. And second: how this thing should be
> designed.

Why don't you just store your object in a sql database and use its sql processor?
Failing that, you could use XML as a storage format for your objects and then parse it.

Greetings!
Volker

--
Windows has detected that your mouse pointer has moved.
Your computer will have to restart for this change to take effect. 
Do you wish to restart now (Y/N)?
Received on Mon Jan 08 2001 - 13:11:01 CET

Original text of this message