Giter Site home page Giter Site logo

python-plex's People

Contributors

harobed avatar

Watchers

 avatar  avatar

python-plex's Issues

restart scanner

In some cases - like formula speadsheet, lexer is not an instance but just an 
restart of existing class - singelton, tokenise formula and forget the rest
It wold be nice to see this behaviour in plex.

Currently i have a workaround :

class Scanner:
  trace = 0

  def __init__(self, lexicon, stream, name = ''):
    self.lexicon = lexicon
    self.name = name
    self.reset(stream)

# static variables should be initialized per scan -  not per instace

  def reset(self, stream):
    self.stream = stream
    self.queue = []     # list of tokens to be returned
    self.initial_state = None   # Node
    self.buffer = ''
    self.buf_start_pos = 0     # position in input of start of buffer
    self.cur_line = 1          # line number of current char
    self.start_pos = 0         # position in input of start of token
    self.start_line = 0        # line number of start of token
    self.start_col = 0         # position in line of start of token
    self.text = None           # text of last token read
    self.state_name = ''       # Name of initial state
    self.begin('')
    self.next_pos = 0       # position in input of next char to read
    self.cur_pos = 0        # position in input of current char
    self.cur_line_start = 0 # position in input of start of current line
    self.cur_char = BOL
    self.input_state = 1


Original issue reported on code.google.com by [email protected] on 3 Apr 2011 at 8:07

Problem Building Plex-2.0.0dev on WinXP 32 Bit w/Python

Hi,
I have downloaded Plex-2.0.0dev, and the following dependencies:
nose-1.3.0
pygments-1.6
docutils-0.11
markupsafe-0.18
jinga2-2.7.2
sphinx-1.2

I have successfully installed all the dependent modules using the standard 
"setup.py install" command.

There are unfortunately problems with building plex (see attached file).

Original issue reported on code.google.com by [email protected] on 16 Jan 2014 at 10:36

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.