Coder Social home page Coder Social logo

narratr's People

Contributors

cswatt avatar hylbyj avatar jonahsmith avatar nivvedan avatar skini avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

narratr's Issues

Sample Program: Key/Lock

  • objects
  • pocket
  • how to automatically use key that works with appropriate lock
  • operations: pickup/use

expand narratr.py

  • FIRST PRIORITY: shift to argparse or getopt
  • Default output file (and maintain stdout possibility)
  • Verbose mode (now basically the default)

Code Cleanup in codegen.py

Codegen needs to be cleaned up before others also start working on it, else it could become more confusing for everyone. Specifically,

  1. Comments. All logic, especially that which could be difficult for others to understand should be well commented - especially in detecting direction and moving around.
  2. Fixing PEP8 style errors. nosetests should pass.
  3. Removing deugging print statements. There are quite a few of them.
  4. Fix and remove code that is commented out. No code should be commented out without a specific stated reason.

Comments in the commits need to addressed here. Maybe redundant from above.
899d141
869f939

Looping constructs

@nivvedan , this is your decision to make, but I figured everyone should be aware.

We never really decided what loop constructs we are going to support. I was thinking for and while, but should we support a do-while loop? I have also tentatively made the syntax as follows:

for [var] in [list]:
    [actions]
while [conditional]:
    [actions]

They're obviously based on Python's. Let me know if you have suggestions.

Rough codegen.py review

First time using issue, hope I used it in a right way. Can you guys take a look at codegen.py? I mentioned some points here: 869f939

I didn't do pep8 style check yet...

Thanks!

clean up AST structure

i.e. develop an ideal structure (and implement it). this will make the code generator much more efficient (and easier to write), since it will have to do a lot less searching for nodes.

Probably @nivvedan and myself.

item_block in codegen

  • program
  • newlines_optional
  • newlines
  • blocks
  • scene_block
  • item_block (this is going to be somewhat involved, I think)
  • start_state
  • setup_block
  • action_block
  • cleanup_block

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.