Created
June 12, 2020 07:24
-
-
Save vivekteega/1dae65b04831ae6f33b6e634aeb6f078 to your computer and use it in GitHub Desktop.
Parse plot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parsePlot(plottext){ | |
var sectionArray = plottext.split('->'); | |
// | |
return sectionArray; | |
} | |
function main(){ | |
var tstr = '<siufifjrioiwjhtwruithwuirhtui>'; | |
var sectionArray = parsePlot(tstr); | |
for(var i=0; i<sectionArray.length; i++){ | |
craeteSection(sectionArray[i]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment