Liberty BASIC Community Forum
« Liberty BASIC Rosetta Code Project »

Welcome Guest. Please Login or Register.
Jan 22nd, 2018, 6:07pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1 2 3 4 5  Notify Send Topic Print
 sticky  Author  Topic: Liberty BASIC Rosetta Code Project  (Read 11657 times)
Janet
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 4111
xx Re: Liberty BASIC Rosetta Code Project
« Reply #30 on: Jul 17th, 2010, 2:55pm »

Looks really good! Could you add stylebits to the keywords? wink
User IP Logged

Windows 7 Professional, SP1, 64 bit Intel Core i5-4200U CPU @ 1.60 GHz 2.30 GHz 6.00 GB

"I am very busy finding out what people mean by what they say." -
Chris Iverson
Administrator
ImageImageImageImageImage


member is offline

Avatar

20% Cooler


Homepage PM

Gender: Male
Posts: 2294
xx Re: Liberty BASIC Rosetta Code Project
« Reply #31 on: Jul 17th, 2010, 3:08pm »

Ah, looks like the "Reserved Words List" in the LB helpfile was missing that, too. I saw the word "To" was missing, and added that a while ago.

Basically, the keywords are based off of the reserved words list.


Rod: Interesting, I'll try to see if I can change that behavior.


EDIT: Oops, the MOD keyword is missing, too. Fixing that.

EDIT2: I really need to learn more about regular expressions. I managed to create a rule that does the exact opposite with the branch labels than what Rod wanted fixed: It would ONLY highlight keywords inside labels.

EDIT3: I did, however, add a rule to prevent the function keywords(INT(), STR$(), etc) being highlighted unless followed by an opening parenthesis.

EDIT4: Added SEEK to the list of commands. Was also missing from the Reserved Words List.

Added LOCATE to the list of commands, and added a list of special variables that get highlighted in LB's default variable color. (Stuff like CommandLine$, etc. will be highlighted now)
« Last Edit: Jul 17th, 2010, 4:33pm by Chris Iverson » User IP Logged

"Do you believe in destiny?" - Pyrrha Nikos, RWBY
"With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
Stefan Pendl
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Computers are like babies, you must teach them what you like them to do ...


Homepage PM

Gender: Male
Posts: 5303
xx Re: Liberty BASIC Rosetta Code Project
« Reply #32 on: Jul 17th, 2010, 5:33pm »

The reserved words list of the help file is incomplete, so make sure to use the alphabetical command reference.
User IP Logged

Stefan

Make sure to read and follow the Forum Guidelines

Liberty BASIC Pro 4.04, Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
Chris Iverson
Administrator
ImageImageImageImageImage


member is offline

Avatar

20% Cooler


Homepage PM

Gender: Male
Posts: 2294
xx Re: Liberty BASIC Rosetta Code Project
« Reply #33 on: Jul 20th, 2010, 11:32am »

Well, I got it so it wouldn't highlight keywords that are within brackets. Nevermind, the fix caused other problems, so it was reverted.

It will still highlight numbers in brackets, and it will highlight numbers used as handle names. Unable to stop this behavior yet.
« Last Edit: Jul 20th, 2010, 1:58pm by Chris Iverson » User IP Logged

"Do you believe in destiny?" - Pyrrha Nikos, RWBY
"With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
Alyce Watson
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Female
Posts: 14918
xx Re: Liberty BASIC Rosetta Code Project
« Reply #34 on: Jul 20th, 2010, 12:54pm »

I'm really impressed with this project, with Chris and with all of the contributors. Wow.
grin
User IP Logged

Alyce
Liberty BASIC Workshop - a complete IDE for Liberty BASIC


Alyce's Restaurant
for Liberty BASIC code, tools and references
Chris Iverson
Administrator
ImageImageImageImageImage


member is offline

Avatar

20% Cooler


Homepage PM

Gender: Male
Posts: 2294
xx Re: Liberty BASIC Rosetta Code Project
« Reply #35 on: Jul 20th, 2010, 1:57pm »

I am too! I really have to thank all the contributors already, awesome guys!



Also, one last test for the syntax coloring. It looks good to me, but if people would please go here:

http://cssource.servegame.org/contrib/example.php


And try it out. Oh, and use "lb" as the language, not "lb2". I use 'lb2' for experimentation.

EDIT: Whoops, nevermind on the "Fixed the keyword in branch label" problem. The fix caused other problems >.<

EDIT2: Oops, thanks Janet.
« Last Edit: Jul 20th, 2010, 6:07pm by Chris Iverson » User IP Logged

"Do you believe in destiny?" - Pyrrha Nikos, RWBY
"With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
tsh73
Moderator
ImageImageImageImageImage


member is offline

Avatar

Anatoly (real name)


PM

Gender: Male
Posts: 1732
xx Re: Liberty BASIC Rosetta Code Project
« Reply #36 on: Jul 20th, 2010, 2:36pm »

Quote:
Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
User IP Logged

damned Dog in the Manger
Janet
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 4111
xx Re: Liberty BASIC Rosetta Code Project
« Reply #37 on: Jul 20th, 2010, 2:40pm »


Chris' link should have stated 'example' and not 'examples'

Here is the link Chris originally posted.
http://cssource.servegame.org/contrib/example.php

This is becoming a fabulous community project. smiley

User IP Logged

Windows 7 Professional, SP1, 64 bit Intel Core i5-4200U CPU @ 1.60 GHz 2.30 GHz 6.00 GB

"I am very busy finding out what people mean by what they say." -
Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5618
xx Re: Liberty BASIC Rosetta Code Project
« Reply #38 on: Jul 20th, 2010, 3:15pm »

I wouldn't get hung up on the syntax coloring, the main part looks great. We really shouldn't be using keywords as labels and the highlight might just be useful.
User IP Logged

Chris Iverson
Administrator
ImageImageImageImageImage


member is offline

Avatar

20% Cooler


Homepage PM

Gender: Male
Posts: 2294
xx Re: Liberty BASIC Rosetta Code Project
« Reply #39 on: Jul 20th, 2010, 6:10pm »

I suppose you're right, Rod, but my almost-OCD perfectionist side kicks in over the littlest things. And the weirdest things too. If even one pixel is out of place on my computer, I can spot it and will spend large amounts of time trying to correct it. tongue

I'll be submitting the current version in to the GeSHi project to be included. If the need for updates come along, I'll revise it.


Also, I have no idea why I left that post as 'examples.php' instead of 'example.php'. I noticed myself that it should be example, I wonder what distracted me to the point of not fixing it =/
User IP Logged

"Do you believe in destiny?" - Pyrrha Nikos, RWBY
"With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
Stefan Pendl
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Computers are like babies, you must teach them what you like them to do ...


Homepage PM

Gender: Male
Posts: 5303
xx Re: Liberty BASIC Rosetta Code Project
« Reply #40 on: Jul 22nd, 2010, 3:09pm »

on Jul 20th, 2010, 6:10pm, Chris Iverson wrote:
Also, I have no idea why I left that post as 'examples.php' instead of 'example.php'. I noticed myself that it should be example, I wonder what distracted me to the point of not fixing it =/


Seems there was a pixel out of place and the focus just jumped over to that grin
User IP Logged

Stefan

Make sure to read and follow the Forum Guidelines

Liberty BASIC Pro 4.04, Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
Chris Iverson
Administrator
ImageImageImageImageImage


member is offline

Avatar

20% Cooler


Homepage PM

Gender: Male
Posts: 2294
xx Re: Liberty BASIC Rosetta Code Project
« Reply #41 on: Jul 22nd, 2010, 3:52pm »

on Jul 22nd, 2010, 3:09pm, Stefan Pendl wrote:
Seems there was a pixel out of place and the focus just jumped over to that grin


Close enough. I noticed that something on the syntax colorer wasn't working right, so I went to fix it in the middle of typing my post. By the time I finished tinkering with it, I simply finished the post instead of updating the URL. tongue

Note to self: Get used to the fact that when you're a moderator on a board, 'MODIFY POST' is in the upper right corner of all posts, not just yours. Must break the muscle memory of hitting the upper-right corner to quote someone undecided At least I noticed before I actually changed anything.
« Last Edit: Jul 22nd, 2010, 3:54pm by Chris Iverson » User IP Logged

"Do you believe in destiny?" - Pyrrha Nikos, RWBY
"With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
Chris Iverson
Administrator
ImageImageImageImageImage


member is offline

Avatar

20% Cooler


Homepage PM

Gender: Male
Posts: 2294
xx Re: Liberty BASIC Rosetta Code Project
« Reply #42 on: Jul 25th, 2010, 9:39pm »

And would you look at that! LB code looks all pretty on the wiki now! The syntax highlighter was accepted, colors were changed to match existing standards.

Thanks to everyone who's contributed so far! Our RC page is quickly skyrocketing!
« Last Edit: Jul 25th, 2010, 9:42pm by Chris Iverson » User IP Logged

"Do you believe in destiny?" - Pyrrha Nikos, RWBY
"With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
Alyce Watson
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Female
Posts: 14918
xx Re: Liberty BASIC Rosetta Code Project
« Reply #43 on: Sep 13th, 2010, 05:45am »

All examples not yet added to Rosetta Code have been made sticky. They can be un-stickied after they are added.
User IP Logged

Alyce
Liberty BASIC Workshop - a complete IDE for Liberty BASIC


Alyce's Restaurant
for Liberty BASIC code, tools and references
Chris Iverson
Administrator
ImageImageImageImageImage


member is offline

Avatar

20% Cooler


Homepage PM

Gender: Male
Posts: 2294
xx Re: Liberty BASIC Rosetta Code Project
« Reply #44 on: Sep 13th, 2010, 1:41pm »

Thanks for that, Alyce, I'm all caught up now grin
User IP Logged

"Do you believe in destiny?" - Pyrrha Nikos, RWBY
"With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
Pages: 1 2 3 4 5  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls