hello, i have an educational compiler construction project that does not have to be hectic but a simple one using java to construct the compiler. It has to compile some of the set of java language, libraries, objects, and controls. it also requires all facets of a standalone compiler (parser - token list, linker, etc...), and end up with an executable.

The problem is i do not know where to start or should i say, with Java the bison and flex is abit confusing because its in C so how do i do it in Java?

I just need the correct steps for me to do this project.

Thank you in advance.

with Java the bison and flex is abit confusing because its in C

Can you explain what you are referring to here?

using java to construct the compiler.

Does this mean you are to write a compiler in java? With bytecode output that can be executed by the java command?

yes thats right

... and end up with an executable.

... With bytecode output that can be executed by the java command? yes thats right

You realise that these two can't both be right?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.