#racket

/

      • Cheery
        my parser is missing few layers, but it seems to get really nice shape
      • added in some operator precedence parsing, added some space sensitivity for prefixes/postfixes so I wouldn't need to parse dumb things.
      • s/dumb things/commas/
      • basically it's got two layers now
      • the first layer parses sentences, blocks, parentheses
      • it's got some protection for rampartly forgotten parenthesis.
      • um. rampart wrong word.
      • TEttinger
        rampant?
      • Cheery
        rampage
      • oh rampant yeah.
      • second layer parses expressions: 5 + 2 * 3 parses like arithmetic usually parses
      • 5 +2 * 3 parses as if + was a prefix
      • it avoids placing in commas in this manner
      • x [15] - a symbol and a list.
      • x[15] - indexing operation
      • between these two layers I should have some more parsers.
      • for different expressions for example.
      • also, should have pattern parsers.
      • for doing some cool assignments or such.
      • mizu_no_oto has quit
      • thinking about a name though.. it's eventually going to resemble some mix of python, coffeescript, and lisp maybe.
      • would like to add some support for custom syntax.
      • while at same time giving myself chance to implement primitives similar to those in python.
      • that is.. giving a chance, not necessarily implement them myself.
      • TEttinger
        oh geez, x[15] and x [15] being different is going to be... a bit nasty. especially if the end-user doesn't expect it
      • how about x[ 15 ]
      • how about x [ 15 ]
      • slogsdon joined the channel
      • mrmyers
        Someone made called pyket recently, but all it makes me think of is a russian trying to say 'racket'.
      • TEttinger
        if I stick in a unicode byte order marker into a commit, stealthily, will I cause someone endless hours of frustration as they attempt to locate it?
      • mrmyers
        *made a lang called
      • jao joined the channel
      • Cheery
        TEttinger: the cue is x[ vs. x [
      • if they're tightly written, they're parsed in as single terminal
      • TEttinger
        that's not much cue...
      • sz0 has quit
      • Cheery
        using the mechanism because it allows to avoid inserting comma everywhere.
      • and it's going to be mentioned in manuals if I like to work in the language.
      • also. if I mean call/indexing, I'm never inserting space there anyway.
      • maybe I get to name it if I list some of the requirements I have for it
      • the main requirement is that it should be fairly easy to change, if some things turn out to be sour.
      • but there shouldn't be excess syntax if it can be avoided. this invalidates lisp notation.
      • atomx has quit
      • the parsing mechanism should be easy to plug into an IDE, perhaps allow interactive updates without having to do a full parse
      • if the grammar is extended, it should provide files for the IDE to function properly in presence of extra syntax.
      • cemerick joined the channel
      • mrmyers
        It sounds like you're reinventing honu?
      • Not that that's a bad thing.
      • Cheery
        took inspiration, but it's not much reinventing.
      • factorial might look like this: http://pastebin.com/ATRE9REb
      • mrmyers
        'return' is a bit tricky. Don't you need escape continuations for that?
      • Cheery
        got an interpreter I can use for this.
      • ..which got a lisp syntax right now
      • I guess I'll apply a kind of 'terminals first' -parsing.
      • if x >= 10: would be if x >= 10 block when it arrives to statement parsing
      • if there's cues in place 'if' and a block
      • it would then recognize itself as if-clause and parse as such.
      • pi- joined the channel
      • got the output from the current parsing.. thinking out a bit what I want out from it.
      • I sort of want rich, minimum hassle syntax with configurability.
      • slogsdon has quit
      • guessing I'll implement equals -sign next. and maybe multiline syntax for parentheses.
      • slogsdon joined the channel
      • pi- has quit
      • bb010g joined the channel
      • jeapostrophe has quit
      • ben-o joined the channel
      • cemerick has quit
      • samth
        mrmyers: pycket isn't a new lang, it's a different implementation of the runtime
      • badkins_ has quit
      • zacts joined the channel
      • mrmyers
        samth: Ah, I got that and pyonR switched.
      • samth: So, bearing in mind that 'Because I could.' is an acceptable answer, why?
      • samth
        mrmyers: to investigate how well tracing jit compilers work for racket, especially for contracts
      • ianjneu joined the channel
      • ekhall has left the channel
      • sheilong has quit
      • sheilong joined the channel
      • cefkamcau joined the channel
      • sz0 joined the channel
      • haxmeister has quit
      • hall joined the channel
      • mithos28 joined the channel
      • sheilong has quit
      • haxmeister joined the channel
      • stffn has quit
      • ArneBab joined the channel
      • sz0 has quit
      • Axord joined the channel
      • bbloom_ has quit
      • TEttinger has quit
      • vraid has quit
      • zacts joined the channel
      • mithos28 has quit
      • emanuelz joined the channel
      • vendethiel- joined the channel
      • lexi-lambda_ joined the channel
      • lexi-lambda has quit
      • lexi-lambda_ is now known as lexi-lambda
      • TEttinger joined the channel
      • ben-o has quit
      • ben-o joined the channel
      • ben-o has quit
      • lexi-lambda has quit
      • lexi-lambda_ joined the channel
      • lexi-lambda_ is now known as lexi-lambda
      • ben-o joined the channel
      • jeapostrophe joined the channel
      • jeapostrophe has quit
      • jeapostrophe joined the channel
      • psy_ has quit
      • jeapostrophe has quit
      • ben-o has quit
      • nutey joined the channel
      • ben-o joined the channel
      • bbloom has quit
      • bbloom joined the channel
      • ben-o has quit
      • jao has quit
      • ben-o joined the channel
      • ianjneu has quit
      • slogsdon has quit
      • haxmeister_ joined the channel
      • haxmeister has quit
      • ben-o has quit
      • kPb_in joined the channel
      • zacts joined the channel
      • sabauman1 has quit
      • nutey has quit
      • jtz has quit
      • psy_ joined the channel
      • {[]}grant has quit
      • Fare joined the channel
      • {[]}grant joined the channel
      • pi- joined the channel
      • mithos28 joined the channel
      • pi- has quit
      • Fare has quit
      • ben-o joined the channel
      • zacts joined the channel
      • ben-o has quit
      • mithos28 has quit
      • Ven joined the channel
      • pi- joined the channel
      • jtz joined the channel
      • pi- has quit
      • zenspider has quit
      • bbloom has quit
      • zenspider joined the channel
      • bbloom joined the channel