Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'welcome.': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'type:': 0.09; 'bye,': 0.16; 'file):': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'seconds.': 0.16; 'subject:Parser': 0.16; 'textfile': 0.16; 'wrote:': 0.16; 'basically': 0.18; 'language': 0.19; 'lawrence': 0.22; 'parse': 0.22; 'parser': 0.22; 'pos': 0.22; 'header:In- Reply-To:1': 0.24; 'somewhere': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'flying': 0.29; 'environment': 0.29; 'lines': 0.30; 'especially': 0.32; 'language.': 0.32; 'file': 0.34; 'to:addr:python-list': 0.35; 'url:org': 0.36; 'should': 0.37; 'subject:: ': 0.37; 'creation': 0.38; 'received:org': 0.38; 'to:addr:python.org': 0.39; 'data': 0.40; 'mark': 0.40; 'hello,': 0.40; 'some': 0.40; 'information': 0.62; 'our': 0.64; 'between': 0.65; 'charset:windows-1252': 0.65; 'here': 0.66; 'believe': 0.67; 'below:': 0.75; '20.000': 0.84; 'entities,': 0.84; 'positions:': 0.84; 'pythonistas,': 0.84; 'lists:': 0.91; 'numbers:': 0.91; 'subject:needed.': 0.91; 'url:demo': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Parser needed. Date: Tue, 02 Jun 2015 04:42:39 +0100 References: <949ff$556cf8e0$5419aafe$20874@news.ziggo.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-18-9-195.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <949ff$556cf8e0$5419aafe$20874@news.ziggo.nl> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 55 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433216711 news.xs4all.nl 2968 [2001:888:2000:d::a6]:41207 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91779 On 02/06/2015 01:29, Skybuck Flying wrote: > Hello, > > I need some kind of parser and some kind of way to access the data > contained in a file like the one below: > > (text file): > > http://www.skybuck.org/Games/StartrekOnline/Parser/SpaceFleetAlertEnemyExample.demo > > > I am interested in learning the entity numbers: > > "EntityRef " > > and their positions: > > " > Pos , , > " > > I am also interested in the creation of these entities, especially their > type: > > "entityTypeEnum " > > So basically the parser should produce a few lists: > > EntityNumber = [] > EntityType = [] > EntityPositionX = [] > EntityPositionY = [] > EntityPositionZ = [] > > Any extra information about entities is welcome. > > The parser should be able to parse a textfile of somewhere between > 20.000 lines to 50.000 lines in about 1 to 2 seconds. > > My environment is SikuliX 1.1 > > Bye, > Skybuck. See here http://nedbatchelder.com/text/python-parsers.html Can you also please stop sending so many emails as I believe some people still pay by the byte. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence