VB6 Parser / Lexer / Scripter

I have a game in VB6, and it works fine and that’s it, but I played with the idea of ​​creating a script engine. I think I would like VB6 to read the script in text files for me, and then lex / parse / execute them.

I have good programming experience and I have already created a simple C compiler as well as a LOGO emulator.

My question is: Are there any tools that I can use, such as Lexx / Yakk / Bison, to help me? How do I approach this issue regarding lexing, parsing, and issuing commands back to VB6 so that I can handle them? Is this BAD IDEA idea in the sense that there are too many obstacles in the way (for example, creating a minesweeper in an assembly, although not impossible, is a very difficult and bad idea.)?

+3
source share
6 answers

If you want to use VBScript, not VB6, you can just use it MSScriptControlto run commands, not create your own. Here 's an article about using it from a .Net application, although it is an ActiveX control, should give you quite some flexibility.

The control can be downloaded from here .

+2
source

Use Microsoft® Windows® Script Control because it is easy to integrate into existing VB6 applications. The control supports VBScript, JScript, or any other "Active Script" implementation.

Windows Script Control , . . , Microsoft .NET . ( , .NET, , .)

Windows Script

Microsoft® Windows® Script ActiveX®, . , , , .

+4
+3

/ VB6 [1]. , ( , ), - .

GOLD VB6.

[1]: - PSC ...

, MSScriptControl.

+2
0
source

VB 6 is the most useful software. Try Visual Basic 6.0 Portable Version for Windows.

0
source

Source: https://habr.com/ru/post/1749077/


All Articles