Ask coding questions

← Back to all posts
Coding language !Help Needed!
PYTHORE3605 (143)

Hey, im trying to make a coding language and would like help.
Here is how much I have done so far:

DynamicSquid (5028)

You're kind of on the right track there. First, you might want to read from a file instead of getting the code through user inputs in the console. And second, try making a lexer. A lexer is the name of a function that turns a string like this:

int: var = 5

into an array like this:

[int] [:] [var] [=] [5]

Each individual element is called a token. Once you have an array of tokens, then you can start actually doing stuff with those tokens, like creating variables, etc.