Giter VIP home page Giter VIP logo

ponyge's People

Contributors

dvpfagan avatar jmmcd avatar markwagy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ramcqueary

ponyge's Issues

README needs updating

* The default problem encoded in ponyge.py is XOR, but the readme file states 
it is word matching.

* The readme file states ./ponyge.py to execute the code, but it is actually 
located in the src/ directory.

Original issue reported on code.google.com by [email protected] on 3 May 2012 at 3:48

Python's IDLE library (idlelib) has different package names in Python 2.x and 3.x

The GUI uses exception handling to try to import Tkinter, as the module can be named Tkinter or tkinter. A similar check should be implemented for the idlelib imports as a few things seem to have changed in the most recent versions of idlelib.

In Python 2.x, all module names are correct as currently implemented in the GUI:

from idlelib.Percolator import Percolator
from idlelib.ColorDelegator import ColorDelegator
from idlelib.textView import view_file

However, in Python 3.x some changes have been made. Module names are no longer capitalised, and the idlelib.ColorDelegator module has been re-named. An alternative implementation similar to the tkinter case above should be:

from idlelib.percolator import Percolator
from idlelib.colorizer import ColorDelegator
from idlelib.textview import view_file

All of the above means that the GUI does not run any more in Python 3.x.

GUI requires python3

What steps will reproduce the problem?
1. ./start-lsystem.py
2.
3.

What is the expected output? What do you see instead?

GUI should launch. Instead, a message saying that python3 isn't installed is 
seen.

What version of the product are you using? On what operating system?

I'm using python2.7 .

Please provide any additional information below.

By changing python3 to python on top of gui.py, the problem is solved.

Original issue reported on code.google.com by [email protected] on 3 May 2012 at 3:46

Selection in P-Systems

What steps will reproduce the problem?
1. Run P Systems
2. Start Selecting Items
3. Items wont select as desired

What is the expected output? What do you see instead?
Program runs just selecting items doesn't work 

What version of the product are you using? On what operating system?
v1.5
OSX running newest python

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 7 May 2012 at 12:38

GUI crashes

What steps will reproduce the problem?
1. Launch lsystems example;
2. Click on what would be the 10th, 11th or 12th squares;
3.

What is the expected output? What do you see instead?

Should just ignore the click. Instead terminal output claims selection was 
made, and interface freezes.

What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 3 May 2012 at 6:00

Patch for /trunk/src/ponyge.py

Starts to address the issue of not allowing < or > comparison operators in the 
grammar. Also fixes a bug that would allow spaces in non-terminal symbols.

 <[^\ <]+?> 
This matches all non-terminal symbols. Shortest possible string (at least size 
of one) of non-space and non < chars surrounded by <>

<[^<]* 
This matches all chars/terminal symbols starting from a < up until we hit 
another <

[^<]* 
This matches all chars/terminal symbols up until reading a <

The side effect of this is that terminal symbols are cut before < characters. 
So a string of "a<b" will give you a terminal set of {a, <b}.
Have you grammar reading tests to run on this to ensure I've not broken 
anything else? 

And are any of you better than me at regular expressions? It really shouldn't 
be too difficult to improve/beat.

Original issue reported on code.google.com by [email protected] on 10 Aug 2012 at 5:54

Attachments:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.