Code Monkey home page Code Monkey logo

gt4carp's Introduction

Carp

contains Carp language support for the Glamorous Toolkit. Heavy WIP.

Contents

The repository contains:

  • A SmaCC parser for Carp,
  • a highlighter and styler for Carp code inside GT,
  • a snippet type for Carp Lepiter snippets,
  • a stand-alone code generator for Carp from an intermediate representation,
  • a booklet about the process of adding a language to GT, and
  • a work-in progress module IDE for Carp based on GT class coders.

Installing

Metacello new
    baseline: 'Carp';
    repository: 'github://carpentry-org/gt4carp:master/src';
    load.
 
"this will also register the Lepiter booklet"
#BaselineOfCarp asClass loadLepiter

Missing

Still left to do are:

  • “finish” the IDE (i.e. bring to a stable, cute state),
  • find a way to distribute the server, and
  • get you involved!

Have fun!

gt4carp's People

Contributors

hellerve avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gt4carp's Issues

Figure out how to package the LanguageLink server

Once we have a LanguageLink server, we need to package it somehow with the repository. Investigate how other implementations do that and whether their approaches are usable for us as well. If not, we need to figure out a way to do it ourselves.

Cheers

Edit the booklet

NOTE: depends to some extent on #4, though can be parallelized.

The booklet needs to be edited (hello @meredithmichael :) ).

Current state:

  • Introduction

    • Interlude
  • Building a parser

    • Building a parser from ANTLR
    • Building a parser from scratch
  • Styling the AST

  • Executing code

  • Bonus Chapters

    • Visualizing code
    • Generating code
    • Writing a coder

    Cheers

Add an evaluator to the module coder

Note: this depends on #1 and #2.

Once we have a LanguageLink interface, the module coder should be updated to be able to directly inject code into Carp rather than “just” generating it.

Cheers

Write a first pass for the booklet

A first pass over the book.

Current state:

  • Introduction

    • Interlude
  • Building a parser

    • Building a parser from ANTLR
    • Building a parser from scratch
  • Styling the AST

  • Executing code

  • Bonus Chapters

    • Visualizing code
    • Generating code
    • Writing a coder

    Cheers

Installation seems to be failing

I downloaded the latest version of GT as of this post and attempted to run the command in the Playground (I assume that works? I haven't used GT before and have very little experience with Smalltalk), which threw the following error:

image

Here's the Transcript:

Returning an object but pool is fullFetched -> BaselineOfCarp-CompatibleUserName.1667023701 --- https://github.com/carpentry-org/gt4carp.git[master] --- https://github.com/carpentry-org/gt4carp.git[master]
Loading -> BaselineOfCarp-CompatibleUserName.1667023701 --- https://github.com/carpentry-org/gt4carp.git[master] --- https://github.com/carpentry-org/gt4carp.git[master]
Loaded -> BaselineOfCarp-CompatibleUserName.1667023701 --- https://github.com/carpentry-org/gt4carp.git[master] --- https://github.com/carpentry-org/gt4carp.git[master]
Loading baseline of BaselineOfCarp...
Fetched -> BaselineOfGToolkitFormatters-CompatibleUserName.1667026732 --- https://github.com/carpentry-org/gtoolkit-formatters.git[main] --- https://github.com/carpentry-org/gtoolkit-formatters.git[main]
Loading -> BaselineOfGToolkitFormatters-CompatibleUserName.1667026732 --- https://github.com/carpentry-org/gtoolkit-formatters.git[main] --- https://github.com/carpentry-org/gtoolkit-formatters.git[main]
Loaded -> BaselineOfGToolkitFormatters-CompatibleUserName.1667026732 --- https://github.com/carpentry-org/gtoolkit-formatters.git[main] --- https://github.com/carpentry-org/gtoolkit-formatters.git[main]
Project: GToolkit4SmaCC baseline
Project: SmaCC baseline
Project: GToolkitFormatters baseline
Fetched -> GToolkitFormatter-CompatibleUserName.1667026732 --- https://github.com/carpentry-org/gtoolkit-formatters.git[main] --- https://github.com/carpentry-org/gtoolkit-formatters.git[main]
Fetched -> GToolkitFormatter-Formatting-CompatibleUserName.1667026732 --- https://github.com/carpentry-org/gtoolkit-formatters.git[main] --- https://github.com/carpentry-org/gtoolkit-formatters.git[main]
Fetched -> Carp-CompatibleUserName.1667023701 --- https://github.com/carpentry-org/gt4carp.git[master] --- https://github.com/carpentry-org/gt4carp.git[master]
Fetched -> Carp-AST-CompatibleUserName.1667023701 --- https://github.com/carpentry-org/gt4carp.git[master] --- https://github.com/carpentry-org/gt4carp.git[master]
Fetched -> Carp-Parser-CompatibleUserName.1667023701 --- https://github.com/carpentry-org/gt4carp.git[master] --- https://github.com/carpentry-org/gt4carp.git[master]
Loading -> GToolkitFormatter-CompatibleUserName.1667026732 --- https://github.com/carpentry-org/gtoolkit-formatters.git[main] --- cache
Loaded -> GToolkitFormatter-CompatibleUserName.1667026732 --- https://github.com/carpentry-org/gtoolkit-formatters.git[main] --- cache
Loading -> GToolkitFormatter-Formatting-CompatibleUserName.1667026732 --- https://github.com/carpentry-org/gtoolkit-formatters.git[main] --- cache
Loaded -> GToolkitFormatter-Formatting-CompatibleUserName.1667026732 --- https://github.com/carpentry-org/gtoolkit-formatters.git[main] --- cache
Loading -> Carp-CompatibleUserName.1667023701 --- https://github.com/carpentry-org/gt4carp.git[master] --- cache
UndefinedObject>>DoIt (TCarpExpressionNodeVisitor is Undeclared)
UndefinedObject>>DoIt (TCarpExpressionNodeVisitor is Undeclared)
CarpEsugSlideShow>>parserFor: (CarpParser is Undeclared)
GtCarpCoderModel>>bindAndExecute: (CarpParser is Undeclared)
GtCarpCoderModel>>computeAst: (CarpParser is Undeclared)
GtCarpCoderModel>>initializeAddOns: (CarpParser is Undeclared)
GtCarpCoderModel>>initializeAddOns: (GtCarpFormatter is Undeclared)
GtCarpCoderModel>>initializeAddOns: (CarpParser is Undeclared)
GtCarpCoderModel>>inspectTypeSpawningOn: (CarpParser is Undeclared)
GtCarpIDECoderModel>>save (CarpParser is Undeclared)
GtCarpNewFunctionCoderModel>>initializeAddOns: (CarpParser is Undeclared)
GtCarpNewFunctionCoderModel>>save (CarpParser is Undeclared)
LanguageLinkSettings class>>carpDefaultSettings (CarpParser is Undeclared)
GtSmaCCParserStyler class>>carpStyler: (CarpVariableNode is Undeclared)
GtSmaCCParserStyler class>>carpStyler: (CarpModuleOrTypeNode is Undeclared)
CarpExecutionResult>>parse (CarpParser is Undeclared)
CarpFile class>>coreLoadStatements (CarpParser is Undeclared)
CarpFile class>>coreLoadStatements (CarpListNode is Undeclared)
CarpFile class>>coreLoadStatements (CarpVariableNode is Undeclared)
CarpFile>>for: (CarpParser is Undeclared)
CarpPostMortemDebugger>>sourceStyler (CarpParser is Undeclared)
UndefinedObject>>DoIt (TCarpExpressionNodeVisitor is Undeclared)
UndefinedObject>>DoIt (TCarpExpressionNodeVisitor is Undeclared)

LanguageLink client is a stub

Currently the LanguageLink client is mostly a stub, copying some of the logic of the JS version, and even just dropping into that in places. In other words, it’s mostly a potemkin village.

Of course, that should be rectified in order to make the language link interface actually work.

Cheers

LanguageLink server needs to be written

A LanguageLink server needs to be written. It can be simple at first.

I think it makes most sense to write it in Haskell and use Carp as a library, to facilitate better interaction with it down the road.

Cheers

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.