An open API service indexing awesome lists of open source software.

https://github.com/mizukisonoko/yokan

Yokan is a thick, jellied dessert made of red bean paste, agar, and sugar. It is usually sold in a block form, and eaten in slices.
https://github.com/mizukisonoko/yokan

Last synced: 4 months ago
JSON representation

Yokan is a thick, jellied dessert made of red bean paste, agar, and sugar. It is usually sold in a block form, and eaten in slices.

Awesome Lists containing this project

README

        

Yokan
====

Yokan is a thick, jellied dessert made of red bean paste, agar, and sugar. It is usually sold in a block form, and eaten in slices.

## Description
This is simple compiler.

## Setup

```bash
$ git clone https://github.com/MizukiSonoko/yokan
$ cd yokan
$ make
```

## Usage

```bash
$ ./yokan
```

## Rules

###Basic

- FIN
```
::= "FIN"
```

- NUMBER (int)
```
::= [0-9] {[0-9]}
```

- NUMBER (float)
```
::= .
```

- CHAR
```
::= [A-Za-z] {[A-Za-z]}
```

- Name
```
::= { | }
```

### Rules

- Number
```
::= "." |
```

- List
```
::= "[" + + "]" | "[" + + "]"
```

- Operator
```
::= "+" | "-" | "*" | "/"
```

- BinaryExpr
```
::= |
```

- Identifire
```
::= |
```

- ListVariableDecl
```
::= "," |
```

- FunctionDecl
```
::= "def" "(" "):" | "def" "():"
```

- ConditionExpr
```
::= "==" | "!="
```

- IfStatement
```
::= "if" ":"
```

- Statement
```
::= | | |
```

- RightValue
```
::= | |
```

- VariableDecl
```
::= "="
```

## Licence

MIT

## Author

[MizukiSonoko](https://github.com/MizukiSonoko)