Home » Tag Archives: ANTLR

Tag Archives: ANTLR

Building and testing a parser with ANTLR and Kotlin

jetbrains-kotlin-logo

This post is part of a series on how to create a useful language and all the supporting tools. Building a lexer Code Code is available on GitHub. The code described in this post is associated to the tag 02_parser       The parser The parser is simply defined as an ANTLR grammar. We have previously built a separate lexer. ...

Read More »

ANTLR and the web: a simple example

gradle-logo

ANTLR on the web: why? I started writing my first programs on MS-DOS. So I am very used to have my tools installed on my machine. However in 2016 the web is ubiquitous and so our languages could be needed also there. Possible scenarios: ANTLR also on the web: users could want to access and possibly to minor changes files ...

Read More »

Creating External DSLs using ANTLR and Java

java-logo

In my previous post quite sometime back I had written about Internal DSLs using Java. In the book Domain Specific Languages by Martin Fowler, he discusses about another type of DSL called external DSLs in which the DSL is written in another language which is then parsed by the host language to populate the semantic model. In the previous example ...

Read More »

ANTLR: Getting Started

antlr-logo

This post drives you towards the basics of ANTLR. Previously, we had learnt about setting up of ANTLR as an external tool.RECAP! It’s here: ANTLR External Tool :) So, here we go…. What is ANTLR? • ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Advanced Java Guide
  • Java Design Patterns
  • JMeter Tutorial
  • Java 8 Features Tutorial
  • JUnit Tutorial
  • JSF Programming Cookbook
  • Java Concurrency Essentials