Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homunculus

Package Overview
Dependencies
Maintainers
2
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homunculus

A lexer&parser by Javascript

  • 0.1.11
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
89
decreased by-7.29%
Maintainers
2
Weekly downloads
 
Created
Source

A lexer&parser by Javascript

NPM version Build Status Coverage Status Dependency Status

INSTALL

npm install homunculus

API

  • getClass(type:String, lan:String):class
  • type: lexer parser node context token
  • lan: js javascript es ecmascript as actionscript css
  • getLexer(lan:String):object
  • lan: js javascript es ecmascript as actionscript css java c++ cpp cplusplus
  • getParser(lan:String):object
  • lan: js javascript es ecmascript css
  • getContext(lan:String):object
  • lan: js javascript es ecmascript

AST

当调用语法分析器解析后,会返回生成ast,这是一个树状数据结构,每个节点都是对应语法解析器下地Node.js的实例。
demo目录下是一个用js的parser分析输入js代码并画出ast形状的页面。

Keywords

FAQs

Package last updated on 29 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc