Skip to content

Commit

Permalink
fix: rename things
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Feb 17, 2024
1 parent 23c3cd5 commit 6e804f9
Show file tree
Hide file tree
Showing 421 changed files with 964 additions and 880 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ignorePatterns:
- prettier.config.js
- .eslintrc.js
- .eslintrc.cjs
- jest.config.mjs
- rollup.config.mjs
- tailwind.config.mjs
- webpack.config.js
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Available at: <https://mati365.github.io/ts-c-compiler/>
## Install

```bash
yarn add @ts-c-compiler/cli @ts-c-compiler/x86-16-vm
yarn add @ts-cc/cli @ts-cc/machine
```

```bash
Expand Down
2 changes: 2 additions & 0 deletions apps/cli/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
.turbo/
10 changes: 8 additions & 2 deletions apps/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# @ts-c-compiler/cli
# @ts-cc/cli

## 1.7.0

### Minor Changes

- Publish packages

## 1.6.0

Expand Down Expand Up @@ -57,7 +63,7 @@
### Patch Changes

- Updated dependencies
- @ts-c-compiler/compiler@0.1.0
- @ts-cc/compiler@0.1.0

## 0.0.2

Expand Down
6 changes: 3 additions & 3 deletions apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-c-compiler/cli",
"version": "1.6.0",
"name": "@ts-cc/cli",
"version": "1.7.0",
"private": false,
"license": "MIT",
"scripts": {
Expand All @@ -14,7 +14,7 @@
"publish": "yarn build:production && npx changeset && npx changeset version && npx changeset publish"
},
"devDependencies": {
"@ts-c-compiler/compiler": "*"
"@ts-cc/compiler": "*"
},
"bin": {
"ts-c": "dist/bin/cli.js"
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/src/NodeFsIncludeResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
CInterpreterSourcePath,
CPreprocessorError,
CPreprocessorErrorCode,
} from '@ts-c-compiler/compiler';
} from '@ts-cc/compiler';

export class NodeFsIncludeResolver implements CInterpreterIncludeResolver {
read =
Expand Down
6 changes: 3 additions & 3 deletions apps/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ import * as E from 'fp-ts/Either';
import { pipe } from 'fp-ts/function';
import { Option, program } from '@commander-js/extra-typings';

import { TableBinaryView, asm } from '@ts-c-compiler/x86-assembler';
import { TableBinaryView, asm } from '@ts-cc/x86-assembler';
import {
CCompilerArch,
ccompiler,
getX86BootsectorPreloaderBinary,
serializeTypedTreeToString,
wrapWithX86BootsectorAsm,
} from '@ts-c-compiler/compiler';
} from '@ts-cc/compiler';

import { NodeFsIncludeResolver } from './NodeFsIncludeResolver';
import { tapEither } from '@ts-c-compiler/core';
import { tapEither } from '@ts-cc/core';

program
.argument('<source>', 'Relative or absolute path to source file')
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions apps/machine/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
.turbo/
8 changes: 7 additions & 1 deletion apps/x86-16-vm/CHANGELOG.md → apps/machine/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# @ts-c-compiler/x86-16-vm
# @ts-cc/vm

## 1.7.0

### Minor Changes

- Publish packages

## 1.6.0

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions apps/x86-16-vm/package.json → apps/machine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-c-compiler/x86-16-vm",
"version": "1.6.0",
"name": "@ts-cc/machine",
"version": "1.7.0",
"private": false,
"license": "MIT",
"scripts": {
Expand All @@ -13,7 +13,7 @@
"publish": "yarn build:production && npx changeset && npx changeset version && npx changeset publish"
},
"devDependencies": {
"@ts-c-compiler/compiler": "*",
"@ts-cc/compiler": "*",
"express": "^4.18.2",
"styled-components": "^6.1.8"
},
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useRef, useEffect } from 'react';
import { Buffer } from 'buffer';
import { X86CPU, VGARenderLoopDriver } from '@ts-c-compiler/x86-cpu';
import { X86CPU, VGARenderLoopDriver } from '@ts-cc/x86-cpu';
import { ScreenCanvasWrapper, ScreenWrapper } from './Screen.styled';

type ScreenProps = {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 7 additions & 1 deletion apps/site/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# @ts-c-compiler/site
# @ts-cc/site

## 1.7.0

### Minor Changes

- Publish packages

## 1.6.0

Expand Down
6 changes: 3 additions & 3 deletions apps/site/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ts-c-compiler/site",
"name": "@ts-cc/site",
"type": "module",
"version": "1.6.0",
"version": "1.7.0",
"license": "MIT",
"private": true,
"scripts": {
Expand All @@ -18,7 +18,7 @@
"@astrojs/react": "^3.0.10",
"@astrojs/tailwind": "^5.1.0",
"@codemirror/lang-cpp": "^6.0.2",
"@ts-c-compiler/compiler": "*",
"@ts-cc/compiler": "*",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"@uiw/react-codemirror": "4.21.21",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { useMemo, memo } from 'react';
import { Table } from 'flowbite-react';
import { clsx } from 'clsx';

import { flipMap } from '@ts-c-compiler/core';
import { TableBinaryView, type SecondPassResult } from '@ts-c-compiler/x86-assembler';
import { flipMap } from '@ts-cc/core';
import { TableBinaryView, type SecondPassResult } from '@ts-cc/x86-assembler';

import { useI18n } from 'i18n';
import { highlightInstructionHTML } from './utils';
Expand Down Expand Up @@ -76,10 +76,7 @@ pl-2 text-cyan-700"
/>

{hasJumps && (
<Table.Cell
className="whitespace-pre-wrap p-0 pr-2 font-mono
text-orange-600"
>
<Table.Cell className="whitespace-pre-wrap p-0 pr-2 font-mono text-orange-600">
{jmpGraph}
</Table.Cell>
)}
Expand Down
2 changes: 1 addition & 1 deletion apps/site/src/modules/Editor/EditorScreen/EditorScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { either as E } from 'fp-ts';
import clsx from 'clsx';

import { useConstRefCallback, useUpdateEffect } from '@under-control/forms';
import { VGARenderLoopDriver, X86CPU } from '@ts-c-compiler/x86-cpu';
import { VGARenderLoopDriver, X86CPU } from '@ts-cc/x86-cpu';

import { useEditorState } from '../EditorStateProvider';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import { useState } from 'react';
import { useControlStrict } from '@under-control/forms';
import constate from 'constate';

import { asm } from '@ts-c-compiler/x86-assembler';
import { asm } from '@ts-cc/x86-assembler';
import {
CCompilerArch,
ccompiler,
getX86BootsectorPreloaderBinary,
wrapWithX86BootsectorAsm,
type CCompilerError,
} from '@ts-c-compiler/compiler';
} from '@ts-cc/compiler';

import type { CompilerError } from '@ts-c-compiler/core';
import type { CompilerError } from '@ts-cc/core';
import {
hasEditorEmulationResult,
type EditorCompileResultError,
Expand Down
4 changes: 2 additions & 2 deletions apps/site/src/modules/Editor/EditorStateProvider/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { either as E } from 'fp-ts';
import type { SecondPassResult } from '@ts-c-compiler/x86-assembler';
import type { TokenLocation } from '@ts-c-compiler/lexer';
import type { SecondPassResult } from '@ts-cc/x86-assembler';
import type { TokenLocation } from '@ts-cc/lexer';

export type EditorCompileLang = 'nasm' | 'c';

Expand Down
2 changes: 1 addition & 1 deletion config/rollup.shared.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import resolve from '@rollup/plugin-node-resolve';

export const createPackageRollupConfig = () => ({
input: 'src/index.ts',
external: [/(node_modules|@ts-c-compiler)/],
external: [/(node_modules|@ts-cc)/],
cache: false,
output: [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ts-c-compiler/root",
"name": "@ts-cc/root",
"private": true,
"scripts": {
"dev": "npx turbo run dev",
Expand Down
8 changes: 7 additions & 1 deletion packages/compiler-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# @ts-c-compiler/core
# @ts-cc/core

## 1.7.0

### Minor Changes

- Publish packages

## 1.6.0

Expand Down
4 changes: 2 additions & 2 deletions packages/compiler-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-c-compiler/core",
"version": "1.6.0",
"name": "@ts-cc/core",
"version": "1.7.0",
"type": "module",
"private": true,
"license": "MIT",
Expand Down
50 changes: 31 additions & 19 deletions packages/compiler-grammar/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# @ts-c-compiler/grammar
# @ts-cc/grammar

## 1.7.0

### Minor Changes

- Publish packages

### Patch Changes

- Updated dependencies
- @ts-cc/lexer@1.7.0
- @ts-cc/core@1.7.0

## 1.6.0

Expand All @@ -9,8 +21,8 @@
### Patch Changes

- Updated dependencies
- @ts-c-compiler/lexer@1.6.0
- @ts-c-compiler/core@1.6.0
- @ts-cc/lexer@1.6.0
- @ts-cc/core@1.6.0

## 1.5.0

Expand All @@ -21,8 +33,8 @@
### Patch Changes

- Updated dependencies
- @ts-c-compiler/lexer@1.5.0
- @ts-c-compiler/core@1.5.0
- @ts-cc/lexer@1.5.0
- @ts-cc/core@1.5.0

## 1.4.0

Expand All @@ -33,8 +45,8 @@
### Patch Changes

- Updated dependencies
- @ts-c-compiler/core@1.4.0
- @ts-c-compiler/lexer@1.4.0
- @ts-cc/core@1.4.0
- @ts-cc/lexer@1.4.0

## 1.3.0

Expand All @@ -45,8 +57,8 @@
### Patch Changes

- Updated dependencies
- @ts-c-compiler/core@1.3.0
- @ts-c-compiler/lexer@1.3.0
- @ts-cc/core@1.3.0
- @ts-cc/lexer@1.3.0

## 1.2.0

Expand All @@ -57,8 +69,8 @@
### Patch Changes

- Updated dependencies
- @ts-c-compiler/core@1.2.0
- @ts-c-compiler/lexer@1.2.0
- @ts-cc/core@1.2.0
- @ts-cc/lexer@1.2.0

## 1.1.0

Expand All @@ -69,17 +81,17 @@
### Patch Changes

- Updated dependencies
- @ts-c-compiler/core@1.1.0
- @ts-c-compiler/lexer@1.1.0
- @ts-cc/core@1.1.0
- @ts-cc/lexer@1.1.0

## 1.0.1

### Patch Changes

- Add bootsector output option
- Updated dependencies
- @ts-c-compiler/core@1.0.1
- @ts-c-compiler/lexer@1.0.1
- @ts-cc/core@1.0.1
- @ts-cc/lexer@1.0.1

## 1.0.0

Expand All @@ -90,8 +102,8 @@
### Patch Changes

- Updated dependencies
- @ts-c-compiler/lexer@1.0.0
- @ts-c-compiler/core@1.0.0
- @ts-cc/lexer@1.0.0
- @ts-cc/core@1.0.0

## 0.1.0

Expand All @@ -102,5 +114,5 @@
### Patch Changes

- Updated dependencies
- @ts-c-compiler/core@0.1.0
- @ts-c-compiler/lexer@0.1.0
- @ts-cc/core@0.1.0
- @ts-cc/lexer@0.1.0
8 changes: 4 additions & 4 deletions packages/compiler-grammar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-c-compiler/grammar",
"version": "1.6.0",
"name": "@ts-cc/grammar",
"version": "1.7.0",
"type": "module",
"private": true,
"license": "MIT",
Expand All @@ -20,8 +20,8 @@
}
},
"dependencies": {
"@ts-c-compiler/core": "*",
"@ts-c-compiler/lexer": "*"
"@ts-cc/core": "*",
"@ts-cc/lexer": "*"
},
"scripts": {
"clean": "rm -rf ./dist",
Expand Down
Loading

0 comments on commit 6e804f9

Please sign in to comment.