Skip to content
This repository was archived by the owner on Dec 30, 2021. It is now read-only.

Commit 325450d

Browse files
committed
Rebrand as TinyProg
1 parent baa7f47 commit 325450d

File tree

10 files changed

+50
-41
lines changed

10 files changed

+50
-41
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.17 FATAL_ERROR)
22

3-
project(tinyexprpp VERSION 0.0 LANGUAGES CXX)
3+
project(tinyprog VERSION 0.0 LANGUAGES CXX)
44

55
include(FetchContent)
66

@@ -55,7 +55,7 @@ option(TE_NAT_LOG "Define the log function as natural logarithm." OFF)
5555

5656
vcpkg_interface_library(${PROJECT_NAME}
5757
INTERFACE_HEADERS
58-
include/tinyexpr.h
58+
include/tinyprog.h
5959
INTERFACE_INCLUDES
6060
${CMAKE_CURRENT_SOURCE_DIR}/include
6161
)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# TinyExprpp
1+
# TinyProg
22

3-
TinyExprpp is minimalist shader-like scripting language, based on a C++ refactor of Tinyexpr, a very small recursive descent parser and evaluation engine for math expressions.
3+
TinyProg is minimalist shader-like scripting language, based on a C++ refactor of Tinyexpr, a very small recursive descent parser and evaluation engine for math expressions.
44

55
A simple program:
66

@@ -19,7 +19,7 @@ double x, y, z;
1919
te_variable vars[] = {{"x", &x}, {"y", &y}, {"z", &z}};
2020
```
2121
22-
TinyExprpp can also call custom native functions. Here is a short example:
22+
TinyProg can also call custom native functions. Here is a short example:
2323
2424
```C
2525
double my_sum(double a, double b) {

include/tinyexpr.h renamed to include/tinyprog.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
/*
2-
* TINYEXPR - Tiny recursive descent parser and evaluation engine in C
2+
* TinyProg - a minimalist shader-like scripting language.
33
*
44
* Copyright (c) 2020 Nathan Rausch
55
* http://loopunit.com
66
*
7+
* Based on:
8+
* TINYEXPR - Tiny recursive descent parser and evaluation engine in C
9+
*
710
* Copyright (c) 2015-2018 Lewis Van Winkle
811
* http://CodePlea.com
912
*
@@ -24,8 +27,8 @@
2427
* 3. This notice may not be removed or altered from any source distribution.
2528
*/
2629

27-
#ifndef __TINYEXPR_H__
28-
#define __TINYEXPR_H__
30+
#ifndef __TINYPROG_H__
31+
#define __TINYPROG_H__
2932

3033
#include <limits>
3134
#include <cctype>
@@ -2861,4 +2864,4 @@ namespace te
28612864
#endif // #if (TE_COMPILER_ENABLED)
28622865
#endif // #if TE_IMPLEMENT
28632866

2864-
#endif /*__TINYEXPR_H__*/
2867+
#endif /*__TINYPROG_H__*/

test/CMakeLists.txt

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
11
cmake_minimum_required(VERSION 3.17 FATAL_ERROR)
22

3-
option(build_tinyexpr_test "Build TinyExpr tests." ON)
4-
option(build_tinyexpr_bench "Build TinyExpr benchmark." ON)
5-
option(build_tinyexpr_example "Build TinyExpr example." ON)
6-
option(build_tinyexpr_example2 "Build TinyExpr example 2." ON)
7-
option(build_tinyexpr_example3 "Build TinyExpr example 3." ON)
8-
9-
if (build_tinyexpr_test)
10-
vcpkg_executable(tinyexpr_test
3+
option(build_tinyprog_test "Build TinyProg tests." ON)
4+
option(build_tinyprog_bench "Build TinyProg benchmark." ON)
5+
option(build_tinyprog_example "Build TinyProg example." ON)
6+
option(build_tinyprog_example2 "Build TinyProg example 2." ON)
7+
option(build_tinyprog_example3 "Build TinyProg example 3." ON)
8+
9+
if (build_tinyprog_test)
10+
vcpkg_executable(tinyprog_test
1111
SOURCES
1212
test.cpp
1313
PRIVATE_DEPENDENCIES
14-
tinyexprpp
14+
tinyprog
1515
)
1616
endif()
1717

18-
if (build_tinyexpr_bench)
19-
vcpkg_executable(tinyexpr_benchmark
18+
if (build_tinyprog_bench)
19+
vcpkg_executable(tinyprog_benchmark
2020
SOURCES
2121
benchmark.cpp
2222
PRIVATE_DEPENDENCIES
23-
tinyexprpp
23+
tinyprog
2424
)
2525
endif()
2626

27-
if (build_tinyexpr_example)
28-
vcpkg_executable(tinyexpr_example
27+
if (build_tinyprog_example)
28+
vcpkg_executable(tinyprog_example
2929
SOURCES
3030
example.cpp
3131
PRIVATE_DEPENDENCIES
32-
tinyexprpp
32+
tinyprog
3333
)
3434
endif()
3535

36-
if (build_tinyexpr_example2)
37-
vcpkg_executable(tinyexpr_example2
36+
if (build_tinyprog_example2)
37+
vcpkg_executable(tinyprog_example2
3838
SOURCES
3939
example2.cpp
4040
PRIVATE_DEPENDENCIES
41-
tinyexprpp
41+
tinyprog
4242
)
4343
endif()
4444

45-
if (build_tinyexpr_example3)
46-
vcpkg_executable(tinyexpr_example3
45+
if (build_tinyprog_example3)
46+
vcpkg_executable(tinyprog_example3
4747
SOURCES
4848
example3.cpp
4949
PRIVATE_DEPENDENCIES
50-
tinyexprpp
50+
tinyprog
5151
)
5252
endif()
5353

54-
if (build_tinyexpr_example)
55-
vcpkg_executable(tinyexpr_example_program
54+
if (build_tinyprog_example)
55+
vcpkg_executable(tinyprog_example_program
5656
SOURCES
5757
example_program.cpp
5858
PRIVATE_DEPENDENCIES
59-
tinyexprpp
59+
tinyprog
6060
)
6161
endif()
6262

test/benchmark.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
/*
2-
* TINYEXPR - Tiny recursive descent parser and evaluation engine in C
2+
* TinyProg - a minimalist shader-like scripting language.
33
*
44
* Copyright (c) 2020 Nathan Rausch
55
* http://loopunit.com
66
*
7+
* Based on:
8+
* TINYEXPR - Tiny recursive descent parser and evaluation engine in C
9+
*
710
* Copyright (c) 2015-2018 Lewis Van Winkle
811
* http://CodePlea.com
912
*
@@ -29,7 +32,7 @@
2932
#include <math.h>
3033

3134
#define TE_IMPLEMENT 1
32-
#include "tinyexpr.h"
35+
#include "tinyprog.h"
3336

3437
#define loops 10000
3538

test/example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define TE_IMPLEMENT 1
2-
#include "tinyexpr.h"
2+
#include "tinyprog.h"
33
#include <stdio.h>
44

55
int main(int argc, char *argv[])

test/example2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define TE_IMPLEMENT 1
2-
#include "tinyexpr.h"
2+
#include "tinyprog.h"
33
#include <stdio.h>
44

55
int main(int argc, char* argv[])

test/example3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define TE_IMPLEMENT 1
2-
#include "tinyexpr.h"
2+
#include "tinyprog.h"
33
#include <stdio.h>
44

55
/* An example of calling a C function. */

test/example_program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define TE_IMPLEMENT 1
2-
#include "tinyexpr.h"
2+
#include "tinyprog.h"
33
#include <stdio.h>
44

55
int main(int argc, char* argv[])

test/test.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
/*
2-
* TINYEXPR - Tiny recursive descent parser and evaluation engine in C
2+
* TinyProg - a minimalist shader-like scripting language.
33
*
44
* Copyright (c) 2020 Nathan Rausch
55
* http://loopunit.com
66
*
7+
* Based on:
8+
* TINYEXPR - Tiny recursive descent parser and evaluation engine in C
9+
*
710
* Copyright (c) 2015-2018 Lewis Van Winkle
811
* http://CodePlea.com
912
*
@@ -25,7 +28,7 @@
2528
*/
2629

2730
#define TE_IMPLEMENT 1
28-
#include "tinyexpr.h"
31+
#include "tinyprog.h"
2932

3033
#include <stdio.h>
3134
#include "minctest.h"

0 commit comments

Comments
 (0)