how to create your own DSL(Domain Specific Language) in python

how to create your own DSL(Domain Specific Language) in python

Sometimes you need more than a cli program. You need more flexibility and control. A Domain Specific Language (DSL) is the right fit for specialised tasks. This post shows how you can build your own. Some rough notes/planning : aim : calculate cost of houses input : num of houses price of house output :… Continue Reading how to create your own DSL(Domain Specific Language) in python

building an indentation analyser in python – a tutorial

scope by indentation is an alternative to curly braces and is used by languages like python and pug. it certainly is more human-friendly as experience gathered tends to produce more and more friendly syntaxes (like┬álivecode). we’ll in this post build an indentation analyser that correctly tells us when we mixed indentation level; just like python… Continue Reading building an indentation analyser in python – a tutorial

building a lexer in python – a tutorial

knowing how to build a lexer allows you to extend your applications and opens up a whole new world. You can write your own DSLs or your own language or just better separate symbols: in other words, it allows you to have more control over a string what is a lexer? from user input to… Continue Reading building a lexer in python – a tutorial