Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Some kind of (code) interpreter?
« previous next »
  • Print
Pages: [1]

Author Topic: Some kind of (code) interpreter?  (Read 2145 times)

Offline insanepotato

  • Member
  • *
  • Posts: 21
Some kind of (code) interpreter?
« on: February 07, 2009, 08:12:58 PM »
I was thinking, it would be pretty cool to be able to run scripts and the sorts from RB. Not so much shell scripts, as that will probably lead to disaster  :P

I'm thinking along the lines of a sort of basic interpreter, which will allow the members of the RB community who are not familiar with C/compiling/patching/ to make games and programs.

Perhaps a program may look like:
#coment
begin
#same as rb->splash(HZ*1, "Please enter Number");
prompt "Please enter Number", 1
#numerical variable a
var num a
#use the RB virtual keyboard, store input into a.
input a
#display the number entered
prompt "you entered", 1
prompt a,1
end

Maybe after, we can have things such as drawing commands and goto/label statements  :D
Logged

Offline obo

  • Developer
  • Member
  • *
  • Posts: 55
Re: Some kind of (code) interpreter?
« Reply #1 on: February 07, 2009, 08:37:38 PM »
Something like http://www.rockbox.org/tracker/9174?
Logged

Offline insanepotato

  • Member
  • *
  • Posts: 21
Re: Some kind of (code) interpreter?
« Reply #2 on: February 07, 2009, 09:30:59 PM »
Awesome, i never noticed it there!

thanks  :D

Logged

Offline motionman95

  • Member
  • *
  • Posts: 108
  • aka coderkid
    • coderkid
Re: Some kind of (code) interpreter?
« Reply #3 on: February 11, 2009, 08:29:25 AM »
Does it still work?  ;D And how do you use it?
Logged
My MP3 Player: Sansa C250 (2GB)
OS: Win XP SP3

Offline ve4cib

  • Member
  • *
  • Posts: 10
Re: Some kind of (code) interpreter?
« Reply #4 on: February 24, 2009, 12:49:40 AM »
If anyone with more time on their hands than me is feeling ambitious some sort of Python or Perl interpreter would be awesome.  It doesn't need to be interactive necessarily; I'm imagining more of a meta-plugin.  Write some code for a new plugin in Python, copy it over to the device, run it through the "PyRock" plugin and *poof* done.

(You can probably achieve that same kind of functionality with the Lua plugin, but I'm kind of guessing there.)

Another (slightly more esoteric) thought would be a Lisp interpreter.  Lisp interpreters can be exceptionally tiny (there's only a small handful of built-in functions), and the regular syntax makes it relatively easy to parse.

I've only been playing around with Rockbox since... last night, so I haven't had a chance to look through the plugin development docs, but if I have a chance I'll maybe see about producing something more formal in terms of specs.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Some kind of (code) interpreter?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.081 seconds with 15 queries.