Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Parsing a python-like language

Name: !!ptMyFAti9WUucce 2009-07-21 17:56

hey.
i have to parse a python like language and im looking for the best language for this. my favourite is yacc but i realy do not want to use c. i also looked at javacc but, meh, i dont like it.

my favourite would be perl but i have to care for speed.

so /prog/ say me what i should use.
(ohh, btw. i do not want to compile nor to interpret that language, just parse, do some syntax-checking and translate into another language)

Name: Anonymous 2009-07-21 18:05

Google

Name: Anonymous 2009-07-21 18:06

Perl
It's no longer 1998, speed is much less of an issue.

Name: Anonymous 2009-07-21 18:08

The broadest definition of "to compile" is a synonym of "to translate", dumbass.

There's Boost::Spirit for C++. Other than that and Yacc/Bison, you'll have to write your own bug-ridden parser.

Name: !!ptMyFAti9WUucce 2009-07-21 18:18

>>4
...
with translate i mean into another language (not c, btw.)
but i'll look at these boost::spirit, maybe its something im looking for...
>>3 make me feel good :)

Name: Anonymous 2009-07-21 18:32

>>1
THE FORCED INDENTATION OF CODE, THREAD OVER

Name: /b/ emissary 2009-07-21 18:46

>>6
MOAR FAILFAG

Name: Anonymous 2009-07-21 18:56

>>2
*grabs dick*
EXPERT DICK GRABBER

Name: Anonymous 2009-07-21 20:46

python is for faggots

Name: Anonymous 2009-07-21 21:20

>>9
stop othering desu~~~~

Name: Anonymous 2009-07-21 21:25

>>10
get out

Name: Anonymous 2009-07-21 21:38

>>11
i'm staying right where i am desu~~~ <3

Name: Anonymous 2009-07-22 13:23

Parsec

Name: Anonymous 2009-07-22 13:41

>>13
I was wondering if anyone would help him.

Name: Anonymous 2009-07-22 13:52

ocamllex/ocamlyacc

Name: Anonymous 2009-07-22 16:22

Perl 6

Name: Anonymous 2009-07-23 12:37

Try Ragel.
http://www.complang.org/ragel/

Ragel compiles executable finite state machines from regular languages. Ragel targets C, C++, Objective-C, D, Java and Ruby. Ragel state machines can not only recognize byte sequences as regular expression machines do, but can also execute code at arbitrary points in the recognition of a regular language. Code embedding is done using inline operators that do not disrupt the regular language syntax.

Name: Anonymous 2009-07-23 13:24

>>15
fucbing fiss off sagefag

Name: Anonymous 2009-07-23 14:02

>>18
lol u tk him 2da bar|?

Name: Anonymous 2009-07-24 2:54

>>16
Python 2.5

Name: Anonymous 2009-07-24 4:07

>>20
Python 3000

Name: Anonymous 2009-07-24 4:11

>>21
You're soo 2000 and late.

Name: Anonymous 2009-07-24 8:02

>>21
What's the point in having Py3k when they don't even properly support it :<

Name: Anonymous 2009-08-11 9:10

>>23
the point is that everyone Should support it but that they are too busy ironing bugs out of their 2.6 code to undertake porting it to python3k code (which incidentally would fix most of the bugs)

Name: Anonymous 2009-08-11 9:58

>>24
Yeah because a rewrite to a non-backwards compatible base wouldn't introduce any bugs. Goddamn python idiots.

Name: Anonymous 2009-08-11 10:11

Name: Anonymous 2009-08-11 10:36

>>25
I think he was suggesting that every moves their stuff to Py3k and let 2.x rot.

Name: Anonymous 2009-08-11 12:07

>>27
I'm sure that was the suggestion.

Name: Anonymous 2011-02-04 16:31

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List