lightscript / Lightscript
JavaScript, with cleaned-up syntax and a few conveniences.
Stars: ✭ 141
Programming Languages
javascript
184084 projects - #8 most used programming language
language
365 projects
Labels
Projects that are alternatives of or similar to Lightscript
Weakable Self
A Swift micro-framework to easily deal with weak references to self inside closures
Stars: ✭ 64 (-54.61%)
Mutual labels: syntax
Nord Sublime Text
An arctic, north-bluish clean and elegant Sublime Text theme.
Stars: ✭ 109 (-22.7%)
Mutual labels: syntax
Nord Highlightjs
An arctic, north-bluish clean and elegant highlight.js theme.
Stars: ✭ 49 (-65.25%)
Mutual labels: syntax
Syntax Highlighter
Syntax Highlighter extension for Visual Studio Code (VSCode). Based on Tree-sitter.
Stars: ✭ 88 (-37.59%)
Mutual labels: syntax
Nord Visual Studio Code
An arctic, north-bluish clean and elegant Visual Studio Code theme.
Stars: ✭ 749 (+431.21%)
Mutual labels: syntax
Comby
A tool for structural code search and replace that supports ~every language.
Stars: ✭ 912 (+546.81%)
Mutual labels: syntax
Catage
Node package and CLI tool to convert code into an image with syntax highlighting
Stars: ✭ 44 (-68.79%)
Mutual labels: syntax
Clang Format Hooks
Apply a coding style with clang-format only to new code added to an existing code base.
Stars: ✭ 122 (-13.48%)
Mutual labels: syntax
Natasha
Solves basic Russian NLP tasks, API for lower level Natasha projects
Stars: ✭ 788 (+458.87%)
Mutual labels: syntax
Stylelint Validator
Stylelint plugin to validate CSS syntax
Stars: ✭ 64 (-54.61%)
Mutual labels: syntax
Syntax
A VSCode dark theme inspired by Framer’s popular code editor.
Stars: ✭ 123 (-12.77%)
Mutual labels: syntax
Ui As Code
Design work on improving Dart's syntax for UI code
Stars: ✭ 90 (-36.17%)
Mutual labels: syntax
LightScript
A close superset of ES7 with JSX and Flow, built with Babel. Designed to make programmers a little more productive.
See lightscript.org for example code and language reference documentation. A quick taste:
Item({ item, isActive }) =>
className = if isActive: 'active' else: 'inactive'
<li className={className}>
{item}
</li>
Come hang out in the gitter chatroom, where contributors can help you get started and answer any questions.
Language Features
In addition to all all ES7, JSX, and Flow features:
- (Optional) Significant Indentation
- Implicit Returns
- If Expressions
- Auto const
- Async/Await shorthand
- Safe-Await
- Readable Operators (or, and, ==, etc)
- Bound Methods
- Commaless Objects and Arrays
- Automatic Semicolon Insertion that always works
- Array Comprehensions
- Object Comprehensions
- Array-based for-loops
- Object-based for-loops
- a few others
Reference documentation is available at lightscript.org, or in Markdown format here. Tests for all features can be seen here and here.
Project Structure
"LightScript" is split across multiple repos:
-
The Parser: babylon-lightscript
- The core of most of the language.
-
The Babel Plugin: babel-plugin-lightscript
- Rewrites a "LightScript AST" into a "JavaScript AST".
- The core of what you need to use LightScript.
-
The Babel Preset: babel-preset-lightscript
- Provides the rest of ES7 for ES6 environments, as well as runtime typechecking.
-
The Sublime Text Package: lightscript-sublime
- Provides syntax highlighting, albeit somewhat hackily.
- Available now on Package Control.
-
The Atom Package: lightscript-atom
- Based on the Sublime Package.
- Available now on
apm
.
-
The Visual Studio Code Package: lightscript-vscode
- Based on the Sublime Package.
- Available now on the VS Code Extension Marketplace.
-
The Website: lightscript.org
- In addition to powering lightscript.org, it's also an example of LightScript code in use.
For now, the issue tracker on this repo should be used for bug reports and feature requests.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].