antlr

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

Testing grammar using ANTLR4 TestRig (Grun)

Reading Time: 5 minutes “Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” –Martin Golding Quotes like above tell us the importance of testing the modules that we develop. Testing for different languages is done using various tools for example JUNIT for java, FunSuite for scala and TestRig (grun on command line) for grammar(.g4). In this 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

Knoldus Pune Careers - Hiring Freshers

Get a head start on your career at Knoldus. Join us!