diff options
author | sienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2011-08-09 16:37:59 -0400 |
---|---|---|
committer | sienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d> | 2011-08-09 16:37:59 -0400 |
commit | d76e399d5a2eb254246896b060c13f6de26f504d (patch) | |
tree | 6552d7272cf3458241c386dfb7a3c59d308a742b | |
parent | 0916983826af0e2f581786c53ba01d313224862d (diff) | |
download | exyapps-d76e399d5a2eb254246896b060c13f6de26f504d.tar.gz |
no tabs
git-svn-id: http://svn.stsci.edu/svn/ssb/etal/exyapps/trunk@366 d34015c8-bcbb-4646-8ac8-8ba5febf221d
-rw-r--r-- | README | 22 | ||||
-rw-r--r-- | exyapps/grammar.py | 6 | ||||
-rw-r--r-- | setup.py | 32 |
3 files changed, 30 insertions, 30 deletions
@@ -13,11 +13,11 @@ the name so this package can have a distinctive identity. Installing / using exyapps -- - python setup.py install + python setup.py install - cd /your/project + cd /your/project - exyapps my_grammar.exy + exyapps my_grammar.exy For now, the package is compatible with yapps; Someday, I want to make parsers run without the exyapps package installed. @@ -34,26 +34,26 @@ What is here? Makefile yapps_grammar.g - yapps_grammar.g is the source code for exyapps/grammar.py - type "make" to re-generate it, then do an svn commit + yapps_grammar.g is the source code for exyapps/grammar.py + type "make" to re-generate it, then do an svn commit doc - looks like latex source for the documentation + looks like latex source for the documentation examples - duh + duh exyapps - the exyapps package that gets installed + the exyapps package that gets installed scripts - "exyapps" command that compiles a parser into python code. + "exyapps" command that compiles a parser into python code. setup.py test - not actual tests, but apparently some interesting input to - run through the parser for testing + not actual tests, but apparently some interesting input to + run through the parser for testing New Features diff --git a/exyapps/grammar.py b/exyapps/grammar.py index 258c464..8220579 100644 --- a/exyapps/grammar.py +++ b/exyapps/grammar.py @@ -33,9 +33,9 @@ def cleanup_sequence(rule, lst): def resolve_name(rule, tokens, id, args): if id in [x[0] for x in tokens]: - # It's a token - if args: - print 'Warning: ignoring parameters on TOKEN %s<<%s>>' % (id, args) + # It's a token + if args: + print 'Warning: ignoring parameters on TOKEN %s<<%s>>' % (id, args) return parsetree.Terminal(rule, id) else: # It's a name, so assume it's a nonterminal @@ -30,20 +30,20 @@ Exyapps is an extended fork of yapps with these new features: """ setup ( - name = "exyapps", - version = "3.0", - description = description, - long_description = long_description, - # bug: replace this and put acknowledgements of these guys in the docs - # url = "http://theory.stanford.edu/~amitp/yapps/", - # author = "Amit J. Patel", - # author_email = "amitp@cs.stanford.edu", - # maintainer = "Matthias Urlichs", - # maintainer_email = "smurf@debian.org", - license = 'MIT', - platforms = ['POSIX'], - keywords = ['parsing'], - packages = ['exyapps'], + name = "exyapps", + version = "3.0", + description = description, + long_description = long_description, + # bug: replace this and put acknowledgements of these guys in the docs + # url = "http://theory.stanford.edu/~amitp/yapps/", + # author = "Amit J. Patel", + # author_email = "amitp@cs.stanford.edu", + # maintainer = "Matthias Urlichs", + # maintainer_email = "smurf@debian.org", + license = 'MIT', + platforms = ['POSIX'], + keywords = ['parsing'], + packages = ['exyapps'], scripts = ['scripts/exyapps'], - #cmdclass = {'bdist_rpm': MyBDist_RPM}, - ) + #cmdclass = {'bdist_rpm': MyBDist_RPM}, + ) |