Skip to content

Commit fbfd7bd

Browse files
committed
It's about time..
0 parents  commit fbfd7bd

File tree

728 files changed

+583317
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

728 files changed

+583317
-0
lines changed

.clang-format

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
BasedOnStyle: Mozilla
3+
AlignAfterOpenBracket: Align
4+
AlignConsecutiveDeclarations: 'true'
5+
AlignConsecutiveAssignments: 'true'
6+
AlignOperands: 'true'
7+
AllowAllArgumentsOnNextLine: 'true'
8+
AllowShortBlocksOnASingleLine: 'false'
9+
AllowShortIfStatementsOnASingleLine: Always
10+
AllowShortLoopsOnASingleLine: 'false'
11+
AlwaysBreakAfterReturnType: All
12+
BinPackArguments: 'false'
13+
BinPackParameters: 'false'
14+
BreakBeforeBraces: Mozilla
15+
IndentWidth: '4'
16+
TabWidth: '4'
17+
18+
...

README.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# TURBOBUILDER
2+
3+
An experimental 80's inspired data entry and retrieval tool.
4+
5+
## Declarative Application Development
6+
7+
TURBOBUILDER is a declarative, model-driven, single-user application generator.
8+
TURBOBUILDER reads a declarative model from text file to dynamically generate
9+
a simple data management application.
10+
11+
## But why??!
12+
13+
I started experimenting with building C projects using Tup, then things went
14+
out of hand.
15+
16+
## Model Language
17+
18+
The model language supports the following capabilities:
19+
20+
* Entities (tables) definition
21+
* Fields (columns) definition (basic types: string, integer, real, date)
22+
* 1-M (one-to-many) entity relations
23+
* Simple calculated fields (transient)
24+
* Basic i18n using labels translation definitions.
25+
26+
### Sample
27+
28+
```
29+
App = application {
30+
title: "SAMPLE"
31+
}
32+
33+
Employee = entity {
34+
Id = field { type: string; size: 10; listed: true; }
35+
FirstName = field { type: string; size: 16; listed: true; }
36+
LastName = field { type: string; size: 16; listed: true; }
37+
}
38+
39+
Company = entity {
40+
Name = field { type: string; size: 20; listed: true; }
41+
Employees = relation { ref: Employee.Id; }
42+
}
43+
44+
English = translation {
45+
Id = "Employee Id";
46+
Company = "Employer";
47+
}
48+
49+
```

Tupfile.ini

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[display]
2+
width = 50
3+
progress = false
4+
[updater]
5+
full_deps = false
6+
warnings = false

Tuprules.tup

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
WARNINGS += -W
2+
WARNINGS += -Wall
3+
WARNINGS += -Wno-missing-field-initializers
4+
ifeq (@(MYPROJ_DEBUG),y)
5+
CFLAGS = $(WARNINGS) -g -m64 -D_GNU_SOURCE -DHAVE_STDINT_H
6+
else
7+
CFLAGS = $(WARNINGS) -O2 -m64 -D_GNU_SOURCE -DHAVE_STDINT_H -DNDEBUG
8+
endif
9+
CFLAGS_EXT = -O2 -m64 -D_GNU_SOURCE -DHAVE_STDINT_H
10+
CSTD = c99
11+
CC = clang

art/banner.png

331 KB
Loading

build/tup.config

Whitespace-only changes.

deps/Tupfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include_rules

deps/argtable3/Tupfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include_rules
2+
: foreach *.c |> $(CC) -std=$(CSTD) -c %f -o %o $(CFLAGS) |> %B.o
3+
: *.o |> ar crs %o %f |> libargtable3.a

0 commit comments

Comments
 (0)