fredrikhl / python-plex Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/python-plex
Automatically exported from code.google.com/p/python-plex
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
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.