lexer

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

Reading Time: 3 minutes 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

How to write grammar for your own language with ANTLR .? (Part -I) : Setting up the Environment( Intellij with ANTLR)

Reading Time: 2 minutes Ever wondered about this question that actually how can we write our own language? How the grammer of clojure or scala can be written.? Here is the answer , we can write grammar for our own language using ANTLR. This is a powerful tool for generating Lexer, Parser and  Visitors for the grammar written by our self. So in this blog we will discuss how to configure Continue Reading