Creating a simple scripting language in C #

I need to create a very simple scripting language, like the evolution of a macro language (where placeholders were filled and exchanged for realdata), which is mainly based on statements that need to be executed in order. I need to maintain the nesting of statements and, possibly, if the conditions.

I think I need a parser to correctly determine the statements

For example, one operator may be:

Input ("Message" = # Clipboard ())

In this case, I will need to execute the #Clipboard () operator first, and then #Input.

Any suggestion on which approach is for him? I think I need to build a tree and execute it. Thank.

+3
source share
1

. :

, , Postfix Notation.

, - , . Eric White .

+2

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


All Articles