Add license header and hashbang

This commit is contained in:
Pavle Portic 2019-04-21 17:42:46 +02:00
parent c24203476b
commit a22012eb45
Signed by: TheEdgeOfRage
GPG Key ID: 6758ACE46AA2A849
5 changed files with 40 additions and 0 deletions

View File

@ -1,3 +1,11 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 pavle <pavle.portic@tilda.center>
#
# Distributed under terms of the BSD-3-Clause license.
NUMBER = 'NUMBER'
EOF = 'EOF'

View File

@ -1,3 +1,11 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 pavle <pavle.portic@tilda.center>
#
# Distributed under terms of the BSD-3-Clause license.
from constants import (
NUMBER, EOF,
PLUS, MINUS, MUL, DIV, POW,

View File

@ -1,3 +1,11 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 pavle <pavle.portic@tilda.center>
#
# Distributed under terms of the BSD-3-Clause license.
import operator
from token import Token

8
main.py Normal file → Executable file
View File

@ -1,3 +1,11 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 pavle <pavle.portic@tilda.center>
#
# Distributed under terms of the BSD-3-Clause license.
from lexer import Lexer
from interpreter import Interpreter
from constants import DEC

View File

@ -1,3 +1,11 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 pavle <pavle.portic@tilda.center>
#
# Distributed under terms of the BSD-3-Clause license.
class Token():
def __init__(self, type, value):
self.type = type