Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jlervin/shodan
A REPL calculator implemented in Go
https://github.com/jlervin/shodan
go grammars parsing repl scanning
Last synced: about 1 month ago
JSON representation
A REPL calculator implemented in Go
- Host: GitHub
- URL: https://github.com/jlervin/shodan
- Owner: JLErvin
- Created: 2019-09-01T06:45:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-07T04:33:34.000Z (over 5 years ago)
- Last Synced: 2024-06-21T17:03:52.885Z (6 months ago)
- Topics: go, grammars, parsing, repl, scanning
- Language: Go
- Size: 1.02 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
shodan
Welcome to my world, insect.
`shodan` is a simple REPL calculator implemented in `go` - named after the infamous articial intelligence
from the 1994 video game `System Shock`.## Features
`shodan` is a fast, command-line calculator.
I wrote it primarly as a way to get experience with `go`, scanning, parsing, and grammars.
The program using recursive descent parsing and scans lines in linear time.## Grammar
`shodan` is defined using the following grammar:
```
::= |
::= | = | clear | list | quit | exit
::= | + | -
::= | * | /
::= | **
::= | | () | sqrt() | sin() | cos() tan()
arcsin() | arccos() | arctan() | log() | ln() | abs()
```