Ask coding questions

← Back to all posts
How do I make a scripting language?
NickIsNotADev

Ok so I want to make a scripting language called Wolf.
But there is one big fat problem:
i
have
no
idea
how
to
make
a
scripting
language

so pls help :(

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
NickIsNotADev
Comments
hotnewtop
Coder100

have you tried reading craftinginterpreters?
https://craftinginterpreters.com

A programming language takes a lot of time to develop, here's the stage (at least the easiest way).

  1. lexing
    here you turn text into words in a way, usually called tokens
  2. parsing
    here you turn the tokens into a 'tree', in other words using pemdas and things like that
  3. interpreting
    using that tree you made, you interpret it by recursively calling it.
NickIsNotADev

@Coder100 ooo ok ty

Coder100

np
happy coding!

mark as correct answer?

btw you can also look at a language i made:
https://github.com/europalang/Europa-Lang @NickIsNotADev

NickIsNotADev