Permalink
Browse files
don't bother with docstring
- Loading branch information...
Showing
with
13 additions
and
3 deletions.
-
+13
−3
opy/compiler2/ovm_codegen.py
|
|
@@ -2,8 +2,21 @@ |
|
|
from __future__ import print_function
|
|
|
"""
|
|
|
ovm_codegen.py
|
|
|
|
|
|
NOTE: This is a static subset of Python.
|
|
|
|
|
|
Constructs to audit the code for:
|
|
|
- **kwargs (I know I have *args)
|
|
|
- yield -- there are a few
|
|
|
- 1 < x < 2 (probably not used)
|
|
|
|
|
|
Static assumptions:
|
|
|
- s % (a,) is (string, tuple)
|
|
|
- a + b is int or float addition
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
from . import ast
|
|
|
from . import pyassem
|
|
|
from . import pycodegen
|
|
|
@@ -84,9 +97,6 @@ def visitModule(self, node): |
|
|
print('Module')
|
|
|
self.scope = self.ctx.scopes[node]
|
|
|
self.emit('SET_LINENO', 0)
|
|
|
if node.doc:
|
|
|
self.emit('LOAD_CONST', node.doc)
|
|
|
self.storeName('__doc__')
|
|
|
|
|
|
lnf = LocalNameFinder()
|
|
|
lnf.Dispatch(node.node)
|
|
|
|
0 comments on commit
9f99535