Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a big project about Android. So you know noobs can't use ADB and Fastboot well. I have an idea for this; I'll make a custom file extension. That is an script. That will be a custom script. So how can I make my own scripting language ? And how can I export a file format from scripting language ? For example; Perl' s file format is .pl and Shell' s is .sh and so on...

Imagine I made an scripting language. But how can I make a program for running that ?

Go on, my idea is; user will install executer program. And he/she can run special scripts with that. So rooting, bootloader unlocking will be pretty easy with that. What do you think ?

My scripting language's scripts will be like this:

[ADB] reboot; ( Calls adb reboot command )
[FASTBOOT] oem unlock;
And here is a rooting script in my mind:

[FASTBOOT] oem unlock;
[FLASH R] [FILENAME:twrp.img];
[MESSAGE] Put your device to sideload mode.;
[SIDELOAD] [FILENAME:root.zip]
[ADB] reboot;

So noobs can use ADB and Fastboot commands without using CMD. .When user openes .myscript file with notepad, he/she will see that codes.

Thanks for your help...
Posted
Updated 28-Oct-13 23:06pm
v2
Comments
Richard MacCutchan 29-Oct-13 5:08am    
OK, great idea, all you need to do is define the syntax of your scripting language and write the application that will parse and execute it.
Member 10352623 29-Oct-13 9:49am    
And i have no idea for "how" ;)
Richard MacCutchan 29-Oct-13 10:07am    
For how what? Are you saying you want someone else to design and write this for you? Or do you have some more specific details of which parts of this you need help with?
Member 10352623 29-Oct-13 10:11am    
How can i make scripting language's executable file? Like Perl's is pl... And how can i execute script ?
Richard MacCutchan 29-Oct-13 10:16am    
I already told you: define a syntax for your file type, and write an application that will parse the content and execute the commands.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900