Coder Social home page Coder Social logo

12d-lang-server's Introduction

12d-lang-server

Language server for the 12d programming language (12dPL) conforming to the Language Server Protocol (LSP).

Table of Contents

  1. Dependencies
  2. Building
  3. Testing
  4. Configuration
  5. Design Decisions
  6. Features
  7. Roadmap
  8. Contributing

Dependencies

  • Go
  • Make
  • Python 3

Building

Build the language server by executing make build which will compile the language server binary 12dls in the current directory.

Testing

Run automated tests by executing make test.

Configuration

The language server can be configured by passing in the below options to the 12dls command.

Option Description Default Value
-i Path to includes directory. ""
-d Enable debugging features like logging. false

Design Decisions

  • Currently the language server does not support services across multiple files. This means that it will only analyse and provide services for the current file.
  • Supports stdio as IPC. stdio is the standard transport for language server IPC and is also straight forward to implement.

Features

  • Go to definition.
  • Hover support.
    • User defined function documentation in markdown.
  • Rename symbol.
  • Find references.

Roadmap

  • Go to definition.
  • Hover support.
    • User defined function documentation in markdown.
  • Rename symbol.
  • Find references.
  • Autoformatting.
  • Autocompletion.
  • Includes.
    • Include directory references.
    • Support relative path includes.

Contributing

You can help the project by contributing in the following ways:

Add a feature request

Submit a feature request through opening a Github issue. with a [Feature Request] tag in the issue subject. e.g. [Feature Request] Autocompletion.

Report a bug

Report a bug providing sample source code and a detailed description of the bug as a Github issue.

Patching documentation

Since we get the 12dpl library documentation by parsing the 12d macro manual, there are a lot of errors in the documentation such as pdf header and footer text being included in function descriptions, inconsistent function signature styling, incorrect spacing in sentences and special symbol characters.

You can help improve the quality of the documentation by fixing the above issues by following the steps outlined in the 12d Documentation Patching.

Bugfixes

Contribute to the project directly by fixing bugs and opening a pull request.

Troubleshooting

  • Error when compiling on windows Cgo: sorry, unimplemented: 64-bit mode not compiled in You have a c compiler which does not support 32 and 64 bit. Install tdm-gcc. to fix.

12d-lang-server's People

Contributors

kelly-lin avatar kelly-lin-nine avatar

Watchers

 avatar

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.