VB.NET中的编译器文本框 [英] Compiler TextBox in VB.NET

查看:79
本文介绍了VB.NET中的编译器文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这听起来有些奇怪.但是我有一个困扰我的问题.
上个月,我一直在尝试使用Borland C ++中的UCI做自己的解释器.它使用了我自己的称为并行六边形转换的技术,所幸取得了成功.现在,我想用已实现的GUI制作它的编译器版本.但是问题是我将如何转换和检查用户输入的程序?更确切地说,我将如何制作脚本编辑器.
我将不得不使用文本框.但是,我将如何检查语法并逐行或逐字或逐个字母地进行转换.在C ++版本中,我只是使用char数组并将其逐字转换.请给一些有用的东西.我是VB的新手.

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.

推荐答案

您可能应该读一本关于编译器构造的好书.
龙书" [可以让编译器 [ ^ ].
还有一些编译器生成器工具"( ANTLR [
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).


这篇关于VB.NET中的编译器文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆