Click here to Skip to main content
15,881,689 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I know this is going to sound a bit strange. But I have a question that tricks me.
Last Month, I have been trying to make an interpreter of my own with the name UCI made in Borland C++. It uses My own technology called Parallel Hexa Conversion and fortunately, was a success. Now I would like to make a Compiler version of it with implemented GUI . But the Problem is how will i convert and check the Program Entered by the user? Tobe more precise, how will I make the Script Editor.
I will have to use a textbox. But how will I check for syntax and do the conversion line by line or word by word or letter by letter. In the C++ version, I just used char array and converted it word by word. Please give something Useful. I am kind of new to VB.
Posted
Updated 26-Sep-12 23:30pm
v2
Comments
buckmunsterfullerene 29-Sep-12 1:00am    
Thanks CPallini for it Really Helped me. Thanks for all Who read my question and Tried answering.

1 solution

You probably should read a good book on compiler construction.
The "Dragon Book"[^] is a good (theoretical) one.
On the other hand, for an informal, practical approach, I suggest the Crenshaw's Let's buld a compiler[^].
There are also some 'compiler generator tools' available (ANTLR[^] being probably the most famous).
 
Share this answer
 
Comments
buckmunsterfullerene 29-Sep-12 0:59am    
Thanks CPallini, That Helped Me!! Thanks for all who Read my Question and Tried answering.
CPallini 29-Sep-12 9:30am    
Glad to help. You are welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900