Skip to content

maierfelix/hevia-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hevia

A Swift Parser, written in ES6.

Installation

npm install hevia

Or clone the source:

git clone https://github.com/maierfelix/hevia.git

Getting started

tokenize

Use tokenize(str) to tokenize a string

let tokens = hevia.tokenize("var a:Int = 10"); // returns array of tokens

parse

Use parse(tokens) to parse an array of tokens

let ast = hevia.parse(tokens); // returns ast

About

A recursive descent Swift parser written in ES6

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published