Franck Pommereau

next version

0.9.16
0.9.17
......
lucid 10.04 LTS
hardy 8.04 LTS
oneiric 11.10
precise 12.04 LTS
quantal 12.10
\ No newline at end of file
......
......@@ -11,7 +11,7 @@ class Nonce (object) :
def __str__ (self) :
return self.__repr__()
def __repr__ (self) :
return "Nonce(%x)" % self._agent
return "Nonce(%s)" % self._agent
def _cross (sets) :
if len(sets) == 0 :
......
......@@ -17,7 +17,11 @@ def doc_files() :
if __name__ == "__main__" :
print("Compiling Emacs files...")
os.system("emacs -batch -f batch-byte-compile utils/abcd-mode.el")
if os.system("emacs -batch -f batch-byte-compile utils/abcd-mode.el") :
emacs = [("share/emacs/site-lisp", ["utils/abcd-mode.el",
"utils/abcd-mode.elc"])]
else :
emacs = [("share/emacs/site-lisp", ["utils/abcd-mode.el"])]
#
setup(name="SNAKES",
version=open("VERSION").read().strip(),
......@@ -47,7 +51,5 @@ if __name__ == "__main__" :
"snakes.utils.abcd",
"snakes.utils.ctlstar",
],
data_files=(doc_files()
+ [("share/emacs/site-lisp", ["utils/abcd-mode.el",
"utils/abcd-mode.elc"])]),
data_files=doc_files() + emacs,
)
......
......@@ -19,7 +19,7 @@
@contact: franck.pommereau@ibisc.univ-evry.fr
"""
version = "0.9.16"
version = "0.9.17"
defaultencoding = "utf-8"
"""## Module `snakes`
......
"""
@todo: revise (actually make) documentation
"""This package features the ABCD compiler, this is mainly a
command-line tool but it can be called also from Python. The API is
very simple and mimics the command line interface
### Function `snakes.utils.abcd.main.main` ###
:::python
def main (args=sys.argv[1:], src=None) : ...
Entry point of the compiler
##### Call API #####
* `list args`:
* `str src`:
* `return PetriNet`:
##### Exceptions #####
* `DeclarationError`: when
* `CompilationError`: when
"""
# apidoc stop
from snakes import SnakesError
class CompilationError (SnakesError) :
......