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 <number>"

and their positions:

"
Pos <x>, <z>, <y>
"

I am also interested in the creation of these entities, especially their
type:

"entityTypeEnum <type>"

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

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to