GithubHelp home page GithubHelp logo

c0-lang's Introduction

C0-lang package

This is an Atom package that provides syntax highlighting for C0 programming language (See below for what C0 is).
APM

What is C0

C0 is a small safe subset of the C programming language, augmented with contracts, specifically developed for teaching the course 15-122 Principles of Imperative Computation at Carnegie Mellon University.
Here's some useful links of C0:

Installation

There are two ways to install this syntax package, both of which require Atom editor has already been downloaded (in case you haven't, download Atom here).

  • Install in atom

    Open Atom.

    Click Flie -> Setting -> Install.

    Search C0-lang in search column.

    Click Install on the package.

    Restart your Atom.

    Congratulations! Your atom is ready to use this package and it would auto-detect any file that ends with .c0.

  • Manual install

    Find your .atom directory on your computer (which is always in C://Users/xxx/).

    Enter packages directory.

    Clone this repo here (enter the following command in cmd).

    git clone https://github.com/EULIR/C0-lang.git
    

    Restart your Atom.

    Congratulations! Your atom is ready to use this package and it would auto-detect any file that ends with .c0.

Screenshot

Below is specifically how this package highlights C0 language

Why Atom

Officially, C0 language only have syntax highlight on Emacs. To extend the use of C0 language and to satisfy more non-Emacs users, this syntax highlighting package for Atom is found necessary.

Atom has bulit-in git support (in fact, it is believed to be the son of GitHub lol) which I believe is useful and helpful. Besides, Atom has beautiful UI (lol).

Contributing

Contributions in any forms would be appreciated. Open an Issue on Issue page or start a Pull Request to help build this package better and more powerful.

c0-lang's People

Contributors

eulir avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

c0-lang's Issues

Nested Multiple Line Comment Does Not Support

/* the rest of this file is a single comment */
/*
// this is a single line of comments
/* this is a comment
 * stretching over multiple lines
 */
*/

Nested comments like this cannot produce the right syntax highlighting (*/ in the last line would not be highlighted as a comment but a source)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.