UNPKG

mercury-lang

Version:

Parser for the mercury live coding language

200 lines (199 loc) 3.25 kB
{ "parseTree": { "global": { "randomSeed": [ 0 ], "highPass": [ 5, 0 ], "lowPass": [ 18000, 0 ], "silence": false }, "variables": { "beat": [ "euclid", 8, 3, 1, 0, 1, 1, 1, 1, 1 ], "val": [ "the string name", "3.14 with/ ( [ ]) special, ;characters&" ], "commaArr": [ 3, ",14", 6, ",28", 3.14, 1.618 ], "theSeps": [ 1, ",", 23, ",", 4.15, ",", 6, ",", 789.1011, "," ] }, "objects": {}, "groups": { "all": [] }, "print": [], "display": [], "comments": [] }, "syntaxTree": { "@main": [ { "@list": { "@name": "beat", "@params": { "@function": { "@name": "join", "@args": [ { "@identifier": "euclid" }, { "@number": 8 }, { "@number": 3 }, { "@function": { "@name": "euclid", "@args": [ { "@number": 7 }, { "@number": 6 } ] } } ] } } } }, { "@list": { "@name": "val", "@params": { "@array": [ { "@string": "the string name" }, { "@string": "3.14 with/ ( [ ]) special, ;characters&" } ] } } }, { "@list": { "@name": "commaArr", "@params": { "@array": [ { "@number": 3 }, { "@identifier": ",14" }, { "@number": 6 }, { "@identifier": ",28" }, { "@number": 3.14 }, { "@number": 1.618 } ] } } }, { "@list": { "@name": "theSeps", "@params": { "@array": [ { "@number": 1 }, { "@identifier": "," }, { "@number": 23 }, { "@identifier": "," }, { "@number": 4.15 }, { "@identifier": "," }, { "@number": 6 }, { "@identifier": "," }, { "@number": 789.1011 }, { "@identifier": "," } ] } } } ] }, "errors": [ "Error at line 2: Unexpected identifier: 'sample' at ne sample<-", "Error at line 3: Unexpected lArray: '[' at prnt [<-", "Error at line 4", "Error at line 5: Unexpected identifier: 'someArr' at lst someArr<-", "Error at line 6: Unexpected lArray: '[' at ring this Array [<-", "Error at line 7", "Error at line 8: Unexpected rArray: ']' at list arr myArr]<-", "Error at line 9", "Error at line 10: Unexpected rArray: ']' at list arr [myArr]]<-", "Error at line 11: Unexpected newObject: 'new' at list new<-", "Error at line 12: Unexpected identifier: 'kick' at newsample kick<-", "Error at line 13: Unexpected lParam: '(' at new synth saw (<-", "Error at line 14", "Error at line 15: Unexpected rParam: ')' at list notes spread(5) )<-", "Error at line 17: Unexpected identifier: 'euclid' at list beat2 join( euclid 8 3) euclid<-" ] }