Skip to content

A Typescript port of a demo from the Definitive Antlr 4 Reference (chapter 4.3)

Notifications You must be signed in to change notification settings

ChuckJonas/extract-interface-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extract-interface-ts

A Typescript port of a demo from the Definitive Antlr 4 Reference (chapter 4.3) using antlr4ts.

Setup

npm install

Example

Input:

import java.util.List;
import java.util.Map;
public class Demo {
	void f(int x, String y) { }
	int[ ] g(/*no args*/) { return null; }
	List<Map<String, Integer>>[] h() { return null; }
}

Output:

interface IDemo {
	void f(int x, String y);
	int[ ] g(/*no args*/);
	List<Map<String, Integer>>[] h();
}

About

A Typescript port of a demo from the Definitive Antlr 4 Reference (chapter 4.3)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published