Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

Brightscript

Brightscript - Programming language

< >

Brightscript is a programming language created in 2010.

#856on PLDB 13Years Old 200Users
0Books 0Papers 832Repos


Example from Linguist:
' ********************************************************* ' ** Simple Grid Screen Demonstration App ' ** Jun 2010 ' ** Copyright (c) 2010 Roku Inc. All Rights Reserved. ' ********************************************************* '************************************************************ '** Application startup '************************************************************ Sub Main() 'initialize theme attributes like titles, logos and overhang color initTheme() gridstyle = "Flat-Movie" 'set to go, time to get started while gridstyle <> "" print "starting grid style= ";gridstyle screen=preShowGridScreen(gridstyle) gridstyle = showGridScreen(screen, gridstyle) end while End Sub '************************************************************* '** Set the configurable theme attributes for the application '** '** Configure the custom overhang and Logo attributes '** These attributes affect the branding of the application '** and are artwork, colors and offsets specific to the app '************************************************************* Sub initTheme() app = CreateObject("roAppManager") app.SetTheme(CreateDefaultTheme()) End Sub '****************************************************** '** @return The default application theme. '** Screens can make slight adjustments to the default '** theme by getting it from here and then overriding '** individual theme attributes. '****************************************************** Function CreateDefaultTheme() as Object theme = CreateObject("roAssociativeArray") theme.ThemeType = "generic-dark" ' All these are greyscales theme.GridScreenBackgroundColor = "#363636" theme.GridScreenMessageColor = "#808080" theme.GridScreenRetrievingColor = "#CCCCCC" theme.GridScreenListNameColor = "#FFFFFF" ' Color values work here theme.GridScreenDescriptionTitleColor = "#001090" theme.GridScreenDescriptionDateColor = "

Language features

Feature Supported Token Example
Comments ✓
' A comment
Line Comments ✓ '
' A comment
Semantic Indentation X
c2.html · roku-brightscript.html · speedcoding.html

View source

- Build the next great programming language · Search · Day 213 · About · Blog · Acknowledgements · Traffic · Traffic Today · GitHub · feedback@pldb.com