Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.

Not necessary an issue/maybe a bug #30

Open
SpiralBL0CK opened this issue Oct 3, 2020 · 2 comments
Open

Not necessary an issue/maybe a bug #30

SpiralBL0CK opened this issue Oct 3, 2020 · 2 comments

Comments

@SpiralBL0CK
Copy link

while writing custom grammar got dharma to crash.Maybe a possible bug.I will attach a ss with the code and the crashpoint.Will also provide source to custom grammar.
Screenshot from 2020-10-03 22-10-26
Screenshot from 2020-10-03 22-09-19

//////////source code

%section% := value

definition :=
"hello" +!array!

setProperty :=
!new_array!
!new_array!.prototype.slice.call( %range%(0-32767), +common:intoverflow+ );
!array!.prototype.slice.call( %range%(0-32767), +common:intoverflow+ );
!new_array!.prototype.slice.call( !new_array!.length, +common:intoverflow+ );
!array!.prototype.slice.call( !array!.length, +common:intoverflow+ );

wrapper :=
try { +setProperty+ } catch (e) {} \n

stuff :=
world
mom
dad

number :=
+common:intoverflow+

%section% := variable

array :=
var @array@ = [];

dict :=
try { var @dict@ = {}; } catch(e) {}

new_array :=
var @new_array@ = new Array((Math.random() & @[email protected]) | 0)

property :=
var @Property@ = "+common:character+"

%section% := variance

main :=
Object.defineProperty(!dict!,!property!,{value: +number+});
Object.defineProperty(!array!,!property!,{value: +number+});
Object.defineProperty(!dict!,!property!,{value: +number+});
Object.defineProperty(!array!,!property!,{value: +number+});
+wrapper+
+wrapper+
+wrapper+
+wrapper+

@SpiralBL0CK
Copy link
Author

sorry if not a bug and it's waste of time due to me not knowing how to programm/use dharma

@posidron
Copy link
Contributor

posidron commented Oct 4, 2020

var @new_array@ = new Array((Math.random() & @[email protected]) | 0)

Remove @[email protected].

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants