New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/kasworld/nonkey

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/kasworld/nonkey

  • v0.0.0-20210120063622-b3b5e693d3a1
  • Source
  • Go
  • Socket score

Version published
Created
Source

nonkey

customized monkey interpreter

from https://github.com/skx/monkey/

from https://interpreterbook.com/

changed

changed to typed enum by genenum (https://github.com/kasworld/genenum)

tokentype
objecttype
precedence

change builtin function init

interpreter/evaluator/builtin_init.go

change parse function init

interpreter/parser/parser.go 

prefixParseFns
infixParseFns
postfixParseFns

add repl from waig_code

add runmon for runfile, runstring with env

update nonkey, run 1 line ,run file, repl

add autoload arg

add global data package builtinfunctions, pragmas

change some map to slice for performance

interpreter/parser/parser.go

prefixParseFns
infixParseFns
postfixParseFns

enum/tokentype/attrib.go

Token2Precedences

add "I" to interface name

split asti interface package

change version handle (use https://github.com/kasworld/version)

update build script

update build version, args handle

add tokentype.attrib

change switch by operator string to tokentype

add NodeI(token.Token) to object.Error for source code line, posinline

TODO

replace ';' with '\n' or '\r'

del method call (tokentype PERIOD .) implement incomplete

If the implementation is hard to explain, it's a bad idea.

del redundant function define (tokentype DEFINE_FUNCTION function)

There should be one--and preferably only one--obvious way to do it.

del redundant ternary operator( tokentype QUESTION "? :" )

del indentifier composite char ( ? . % )

identifier start char must letter and _ , not digit, following letter,_ and digit

change "for" keyword to "while"

bug to fix

method call act oddly

FAQs

Package last updated on 20 Jan 2021

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