~manxi-david/pyeffect/pyeffect

« back to all changes in this revision

Viewing changes to src/s2/s2.py

  • Committer: dvspeed
  • Date: 2011-12-26 13:18:36 UTC
  • Revision ID: manxi.david@gmail.com-20111226131836-mvoy9y32z0ujxvm1
-Change of folder

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2011 David Manzanares <manxi.david@gmail.com>
 
2
#This file is part of PyEffect.
 
3
#
 
4
# PyEffect is free software: you can redistribute it and/or modify
 
5
# it under the terms of the GNU General Public License as published by
 
6
# the Free Software Foundation, either version 3 of the License, or
 
7
# (at your option) any later version.
 
8
#
 
9
# PyEffect is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
12
# GNU General Public License for more details.
 
13
#
 
14
# You should have received a copy of the GNU General Public License
 
15
# along with PyEffect. If not, see <http://www.gnu.org/licenses/>.
 
16
 
 
17
import s1
 
18
import out
 
19
import lns
 
20
 
 
21
vars=[]
 
22
varsDicc={}
 
23
gLine=0
 
24
gLines=[]
 
25
definedFuncs=[]
 
26
definedFuncsDicc={}
 
27
line_start=-1
 
28
 
 
29
def comp():
 
30
        global gLine
 
31
        while gLine<len(s1.splited):
 
32
                lns.compUpLine(s1.splited[gLine])
 
33
        if line_start==-1:
 
34
                out.error("There is no start function")
 
35
        return None
 
36
        for l in gLines:
 
37
                print l
 
38
        #exit()
 
39
        #print varsDicc