# makeJs **Repository Path**: GPLer/makeJs ## Basic Information - **Project Name**: makeJs - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-05-06 - **Last Updated**: 2021-12-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # makeJs For leaning how to do a interpreter. So I make a sub Javascript interpreter for interpreting itself. (No dependence any third-party) # In developing Now support: * define variables * simple expression * compares * if statement * while loop * Function * Array ![demo.jpg](/demo.gif) ```js function quickSort(list,len) { let a = 0; let b = len-1; let c = list[a]; while (a < b){ while (list[b]>c && a < b){ b = b-1; } if(list[b] < c){ list[a] = list[b]; list[b] = c; b = b-1; c = list[b]; } while (list[a] < c && a < b){ a = a + 1; } if(list[a] > c){ list[b] = list[a]; list[a] = c; a = a + 1; c = list[a]; } } return list; } let arr = [9,3,2,1,5,-2,6]; quickSort(arr,7); ``` See the test folder for more examples # Future support: * Object * ...