Skip to content

aikoven/slice2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slice2json

Parser for the Slice language.

Usage

import {readFileSync} from 'fs';
import {parse} from 'slice2json';

const contents = readFileSync('MySlice.ice', 'utf-8');
const result = parse(contents);
/*
  {
    "pragmaOnce": true,
    "includes": [...],
    "modules": {
      "type": "module",
      "name": "MyModule",
      "content": [...]
    }
  }
*/

See types.ts for the schema of returned object.

About

Parser for the Slice language

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •