# arnoldc.js

> Compiler from ArnoldC to Javascript

Latest version **0.0.5** (published 2019-11-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install arnoldc.js
pnpm add arnoldc.js
yarn add arnoldc.js
bun add arnoldc.js
```

Provides the command `arnoldc.js`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2019-11-06 |
| First published | 2015-05-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 38.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ThomasCrvsr |
| Maintainers | mattdsteele |
| Keywords | arnoldc, compiler |

## Links

- npm: https://www.npmjs.com/package/arnoldc.js
- Repository: https://github.com/ThomasCrvsr/arnoldc-to-js
- Issues: https://github.com/ThomasCrvsr/arnoldc-to-js/issues
- npm.io page: https://npm.io/package/arnoldc.js

## Dependencies (3)

- [brfs](https://npm.io/package/brfs.md) ^1.4.1
- [jison](https://npm.io/package/jison.md) ^0.4.18
- [source-map](https://npm.io/package/source-map.md) ^0.3.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2019-11-06
- 0.0.4 — 2019-11-03
- 0.0.3 — 2015-11-03
- 0.0.2 — 2015-11-02
- 0.0.1 — 2015-05-11

## README

# arnoldc.js

arnoldc.js is a compiler from ArnoldC language to Javascript, with support for source maps.

You can read about the original project here : https://github.com/lhartikk/ArnoldC

Also available as:

* [Gulp plugin](https://github.com/mattdsteele/gulp-arnoldc)
* [Webpack loader](https://github.com/mattdsteele/arnoldc-loader)

## How to use it

Install: `npm install arnoldc.js --global`

Run: `arnoldc.js {{file.arnoldc}}`

It will produce two files:

* Compiled javascript: `file.arnoldc.js`
* Source Map javascript: `file.arnoldc.js.map`

The source map contents is inlined into the map using `sourcesContent`, so you don't need to host your .arnoldc files.

## How does it works ?

It uses [Jison](http://zaach.github.io/jison/) to parse the file and to produce a simple AST of the code.

Then, it uses functions defined in the file `Transpiler.js` and `ast.js` to produce the corresponding Javascript code.

Source maps provided by Mozilla's [source-maps](https://github.com/mozilla/source-map) library.

## Not supported yet

- Non void methods
- Return statement
- Assign variable from method call
- Read integer

It's coming soon !

---
_Source: https://npm.io/package/arnoldc.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
