Skip to content

Commit 4ac2791

Browse files
committed
Skeleton code
1 parent d0663a7 commit 4ac2791

12 files changed

Lines changed: 466 additions & 2 deletions

File tree

.gitignore

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1-
.py[co]
2-
__pycache__
1+
# Project
32
.idea
3+
4+
# Python
5+
__pycache__/
6+
*.py[co]
7+
.venv/
8+
dist/
9+
*.egg-info/
10+
.tox/
11+
12+
# JavaScript
13+
node_modules/
14+
15+
# Rust
16+
target/

docs/README.md

Whitespace-only changes.

lib/Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[package]
2+
name = "steflib"
3+
version = "0.1.0"
4+
edition = "2021"
5+
description = "Rust implementation of STEF (Simple Token-Efficient Format)"
6+
license = "MIT"
7+
authors = ["Nigel Small"]
8+
repository = "https://github.com/technige/stef"
9+
homepage = "https://stef.nige.tech"
10+
readme = "README.md"
11+
12+
[lib]
13+
name = "steflib"
14+
path = "src/lib.rs"

lib/README.md

Whitespace-only changes.

lib/package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "steflib",
3+
"version": "0.1.0",
4+
"description": "JavaScript implementation of STEF (Simple Token-Efficient Format)",
5+
"type": "module",
6+
"exports": "./src/index.js",
7+
"files": ["src/index.js"],
8+
"scripts": {
9+
"test": "node --test tests/steflib.test.js"
10+
},
11+
"license": "MIT",
12+
"author": "Nigel Small",
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/technige/stef"
16+
},
17+
"homepage": "https://stef.nige.tech"
18+
}

lib/pyproject.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[build-system]
2+
requires = ["setuptools>=68"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "steflib"
7+
version = "0.1.0"
8+
description = "Python implementation of STEF (Simple Token-Efficient Format)"
9+
readme = "README.md"
10+
license = {text = "MIT"}
11+
authors = [
12+
{name = "Nigel Small"}
13+
]
14+
requires-python = ">=3.9"
15+
classifiers = [
16+
"Development Status :: 4 - Beta",
17+
"Intended Audience :: Developers",
18+
"License :: OSI Approved :: MIT License",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Python :: 3.13",
25+
"Topic :: Software Development :: Libraries",
26+
]
27+
28+
[project.urls]
29+
Repository = "https://github.com/technige/stef"
30+
Documentation = "https://stef.nige.tech"
31+
32+
[tool.setuptools]
33+
py-modules = ["steflib"]
34+
package-dir = {"" = "src"}
35+
36+
[tool.pytest.ini_options]
37+
testpaths = ["tests"]
38+
addopts = "-v"
39+
40+
[tool.tox]
41+
env_list = ["py39", "py310", "py311", "py312", "py313"]
42+
43+
[tool.tox.env_run_base]
44+
deps = ["pytest"]
45+
commands = [["pytest"]]

lib/src/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// steflib - JavaScript implementation of STEF (Simple Token-Efficient Format)
2+
// https://stef.nige.tech
3+
4+
// TODO: implement STEF parser and encoder
5+
6+
export function parse(text) {
7+
throw new Error("not implemented");
8+
}
9+
10+
export function stringify(value) {
11+
throw new Error("not implemented");
12+
}

lib/src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// steflib - Rust implementation of STEF (Simple Token-Efficient Format)
2+
// https://stef.nige.tech
3+
4+
// TODO: implement STEF parser and encoder
5+
6+
pub fn parse(text: &str) -> Result<(), ()> {
7+
unimplemented!()
8+
}
9+
10+
pub fn stringify(value: ()) -> String {
11+
unimplemented!()
12+
}

0 commit comments

Comments
 (0)