compiler

Back2Basics: For Expression Served From Scala Magic Box – I.

In Scala, lots of the things are kind of a magic for Java developers. Sometimes this magic amazes the code but sometimes it has ruined the developer’s life. Today we are going to discuss one of the magic called “For Expression“, “For Comprehension” or as per Java developers like me called “For Loop“. Scala developers familiar with for comprehension and most of them have the idea, Continue Reading

Back2Basics: Do you know Scala Eta-Expansion and HOF Chemistry?

I am working on Scala from last 2 years, and pretty confident about Scala concept like HOF, Currying and more. But Recently again looking into the HOF (Higher Order Functions) in Scala. I am pretty confident, HOF is “Passed a function as an argument”, “Assign functions to variables” and “Return functions from function” and the conclusion is Functions are First Class Citizen. For me, these Continue Reading

Time Travel in Scala: CPS in Scala (scala’s continuation).

Sometime before I was just roaming around in the landOfLisp  and I came across different spaceships of different guilds of Functional Programming that are going to save the earth from the unholy creatures: Bugs ! That degrade our software quality. I was trying to map everything to Scala as it can also be written in a functional way. Then I came across a guild name Continue Reading

Creating a DSL (Domain Specific Language) using ANTLR ( Part-II) : Writing the Grammar file.

Earlier we discussed in our blog how to configure the ANTLR plugin for the intellij for getting started with our language. In this post we will discuss the basics of the ANTLR  and exactly how can we get started with our main goal. What is the lexer, parser and what are their roles and many other things. So lets get started, Antlr stands for ANother Continue Reading

%d bloggers like this: