Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Bulb Chain LanguageNew to Visual Studio Code? Get it now.
Bulb Chain Language

Bulb Chain Language

dlOuOlb

|
1,542 installs
| (0) | Free
Bulb Chain is a toy language made to improve my TypeScript programming skill.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Bulb Chain

Bulb Chain is a toy language made to improve my TypeScript programming skill.

Language Syntax

Short Example

@MySpace (This defines a namespace.)
[
    @Proc1{++++}
    @Proc2{===}
]

(This defines an alias for a namespace.)
@My<.../MySpace>

("Main" procedure will be
 displayed through the console.)
@Main{ <My/Proc1>----<My/Proc2>---- }

Bulb's Behavior

  • when signal is true or false

    • "-" :
      • (signal, bulb) <- (bulb, signal)
    • "~" :
      • (signal, bulb) <- (bulb, not signal)
    • "+" :
      • (signal, bulb) <- (bulb, signal xnor bulb)
    • "=" :
      • (signal, bulb) <- (bulb, signal xor bulb)
    • "|" :
      • (signal, bulb) <- (undefined, signal)
    • "$" :
      • (signal, bulb) <- (undefined, not signal)
    • ":" :
      • (signal, bulb) <- (if(signal is bulb) then(bulb) else(undefined), signal)
  • when signal is undefined

    • "|" or "$" :
      • (signal, bulb) <- (bulb, bulb)
    • others :
      • (signal, bulb) <- (undefined, bulb)

Code Test

Menu Bar - View - Command Palette - Bulb Chain: Run

Then the result will be displayed on the console. Press any number to toggle the input bit, any alphabet to toggle the flow direction, or ESC to quit the program.


  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft