asgerf / parsejs.dart

JavaScript parser for Dart
BSD 2-Clause "Simplified" License
26 stars 11 forks source link

ParseJS

ParseJS is a JavaScript parser for Dart. It is well-tested and is reasonably efficient.

Example Usage

import 'package:parsejs/parsejs.dart';

void main() {
    new File('test.js').readAsString().then((String code) {
        Program ast = parsejs(code, filename: 'test.js')
        // Use the AST for something
    })
}

Options

The parsejs function takes the following optional arguments: