pushrbx icon

Untitled

pushrbx | PRO | 05/22/13 06:54:02 PM UTC | 0 ⭐ | 403 👁️ | Never ⏰ | []
Python |

450 B

|

None

|

0 👍

/

0 👎

#! /usr/bin/env python
# -*- coding: utf8 -*-
 
import os, sys
 
class Interpreter(object):
    def __init__(self):
        self.line = ""
        self.commands = list()
 
    def parse(self, text):
        self.line = text
        strt = text.split(" ::: ");
 
file = sys.argv[1]
try: f = open(file, "r")
except: print "A megadott inputfajl nem letezik!"
else:
    p = Interpreter()
    for line in f:
        if not line:
            continue
 
        p.parse(line)

Comments