PHP desktop-like app thingy...

Post here about your projects and websites using Regnus!
Post Reply
neuzd
Posts: 22
Joined: Sun Nov 15, 2009 pm30 6:02 pm
Contact:

PHP desktop-like app thingy...

Post by neuzd » Mon Dec 28, 2009 pm31 5:53 pm

I know this may sound rather useless, but I wrote a little PHP script that works similarly to the desktop parsers.
The reason why I can't call it a parser is obviously because the real parsing of the regnus script is still done by Ryan's PHP parser.

Anyways, I did this because I'm 90% of the time working on my Mac and I needed a faster way to try my scripts without having always to modify the line of code calling the parser.

Being a PHP script it is intended to be hosted along with your scripts, on your own website, so there are a couple of "settings" that you must modify in order to have it working. There are comments in the source anyway, and it is extremely simple so I suppose I don't really need to teach you how to modify it.
There's also a small -commented out- CSS styling. Again, modify it to your likings.

Now with the...er..."features":
The page starts listing all the Regnus scripts found in the script directory.
Clicking on a file will bring up the details of the script, a listing of all the labels, and the generated text of the chosen label (by default it is the first found).
The nice difference with the desktop apps is that you always see all the labels and you can select a different one with a single click.

Limitations/undone stuff
Labels listed are only of the selected script, still no labels of included script are displayed.
I didn't double check if the Entries number is always correct. RATIO and ENTRY are checked to be at the beginning of the line, but I should verify it with the Win parsers.
By now (version 0.9) only the text output is managed, but the whole file is written to be easily modifiable, so you can do it by yourself if you really want it. I'm still trying to figure out how to add some options to the page and keeping it sleek and straightforward as it is now (yes I like it the simplest).

Here is the source.
And the implementation at my site as example.

As you can read in the source, I'm not a fan of copyright, but it would be nice to be acknowledged if you plan to use/modify it in your website.
Just keep in mind that Regnus copyright is owned by Ryan.

User avatar
Ryan
Site Admin
Posts: 142
Joined: Wed Nov 11, 2009 pm30 8:19 pm
Contact:

Re: PHP desktop-like app thingy...

Post by Ryan » Fri Jan 01, 2010 pm31 1:14 pm

Hey, a front-end like this for the PHP parser is a neat idea, neuzd. :)

I've added a link to this thread from the PHP parser's page at the main website - looking forward to seeing this develop!

Ryan

veryalien
Posts: 13
Joined: Wed Apr 16, 2014 am30 9:13 am

Re: PHP desktop-like app thingy...

Post by veryalien » Sun Apr 20, 2014 pm30 8:51 pm

Is the "PHP desktop-like app thingy" (cool name!) still maintained? I had exactly the same issues when using the PHP parser, I didn't want to keep manually updating little php pages to call each test script that I wrote. The "PHP desktop-like app thingy" makes it much easier. I'm just wondering if there have been any improvements or new features that might have been done but not yet released via the forums or other web-sites?

neuzd
Posts: 22
Joined: Sun Nov 15, 2009 pm30 6:02 pm
Contact:

Re: PHP desktop-like app thingy...

Post by neuzd » Wed May 14, 2014 pm31 1:13 pm

The "cool name" was not intentional, it was a replacement for the obvious and very simple "front-end" term, because at the time it was escaping my memory.
Anyway, the PHP front-end relies on the PHP parser which is maintained by Ryan. If you see it working you can assume it is working in compliance of the latest Regnus specification.
I had problems in the past about accessing the PHP parser, thougth I checked with Ryan and it seemed to be a problem on my side. I don't know the current status of the front-end but I will check how it's faring in the next future.
I'll see if other features are nedded, also.

Post Reply