How would I create a programming language using blueprints?

I want to create a programming language for my game, it can be either text based or block based like scratch, how would i do this? And where would i even begin?
Any resources found on the topic would be greatly appreciated