Giter VIP home page Giter VIP logo

xcbasiclanguagevscodeext's Introduction

xcbasic logo

"xcbasiclanguage" VS Code extension README

Syntax highlighting and snippets for XC-BASIC, a new cross compiling basic dialect for the C64.

Features

Grammar definition for syntax highlighting and more

Syntax highlighting

Snippets

There are snippets for all the main commands with arguments, all with some handy help text too. Just type away, or use Ctrl+Space to call the helper.

Requirements

Not really a "requirement", but of course you will need XC-BASIC to compile anything you write... Get it at: https://github.com/neilsf/XC-BASIC

Extension Settings

This extension contributes the following settings:

  • xcbasic.basefolder: Absolute path of the XC-BASIC base folder (the one containing the 'bin' and 'third_party' folders).

For now this setting is not used directly by the extension, you can use it with the following tasks.json and simply hit Crtl+Shift+B or Cmd+Shift+B to build the currently open XC-BASIC file to a C64 prg with the same name.

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Build XC_BASIC file to .prg",
            "type": "shell",
            "osx": {
                "command": "./xcbmac",
                "args": [
                    "${file}",
                    "${fileDirname}/${fileBasenameNoExtension}.prg"
                ]
            },
            "linux": {
                "command": "./xcb",
                "args": [
                    "${file}",
                    "${fileDirname}/${fileBasenameNoExtension}.prg"
                ]
            },
            "windows": {
                "command": "xcb.bat",
                "args": [
                    "${file}",
                    "${fileDirname}\\${fileBasenameNoExtension}.prg"
                ]
            },
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "options": {
                "cwd": "${config:xcbasic.basefolder}"
            }
        }
    ]
}

Known Issues

Nothing that I know of, but since this grammar-extension-authoring thing is new for me, there may be some bugs here and there. :) If you see something just open an issue on the github repository, and I'll see what can i do about it.

Release Notes

0.0.1

Initial release of xcbasiclanguage extension.

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.