compiler theory

Choosing the right database(RDBMS) for Data analyst?

Which database is best? The question, obviously, depends on what you want to use it for. I, like most Data analysts, want to use a database to warehouse, process, and manipulate data—and there’s no shortage of thoughtful commentary outlining the types of databases I should prefer. But these evaluations, which typically discuss databases in terms …

Choosing the right database(RDBMS) for Data analyst? Read More »

Man carving wood

DSL / Python / New Language: How to build a CSS pre-processor (like SASS) from scratch (DotDot)

If you are in web development, maybe you’ve heard of Sass, Less, Pug, Stylus etc. All these are pre-processors. In this tutorial we’re going to build nothing less than a functional css pre-processor from scratch with variables and functions. This type of new language is called source-to-source compiled. If you are thrilled, i hope not …

DSL / Python / New Language: How to build a CSS pre-processor (like SASS) from scratch (DotDot) Read More »

create your own dsl 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 : …

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

building an indentation lexer 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 …

building an indentation lexer in python – a tutorial Read More »