Skip to content

Commit

Permalink
Fully build-able repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Greece4ever committed Feb 15, 2021
1 parent 8be752f commit 941c8de
Show file tree
Hide file tree
Showing 8 changed files with 419 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
*
!install.sh
!.gitignore
!*.cpp
!*.h
!*.hpp
!/parsing
!/db
!/db
!/langs
!*.lang
12 changes: 12 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
rm -rf ~/.config/scat # Remove cache file if exists
g++ -o scat main.cpp -std=c++17 -l sqlite3
chmod +x ./scat
for i in $(ls ./langs/);
do
./scat --save ./langs/$i
echo "Parsing file \"${i}\""
done
./scat --create_ptr .cpp .c
./scat --create_ptr .cpp .h
./scat --create_ptr .cpp .cpp
# rm -rf ./langs
103 changes: 103 additions & 0 deletions langs/cpp.lang
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
.cpp

KWD:
alignas BLUE
alignof BLUE
and BLUE
and_eq BLUE
asm PURPLE
atomic_cancel BLUE
atomic_commit BLUE
atomic_noexcept BLUE
auto BLUE
bitand BLUE
bitor BLUE
bool BLUE
break PURPLE
case PURPLE
catch PURPLE
char BLUE
char8_t BLUE
char16_t BLUE
char32_t BLUE
class BLUE
compl BLUE
concept BLUE
const BLUE
consteval BLUE
constexpr BLUE
constinit BLUE
const_cast BLUE
continue PURPLE
co_await PURPLE
co_return PURPLE
co_yield PURPLE
decltype BLUE
default BLUE
delete PURPLE
do PURPLE
double BLUE
dynamic_cast BLUE
else PURPLE
enum BLUE
explicit BLUE
export PURPLE
extern BLUE
false BLUE
float BLUE
for PURPLE
friend BLUE
goto BLUE
if PURPLE
inline blue
int blue
long blue
mutable blue
namespace blue
new PURPLE
noexcept BLUE
not BLUE
not_eq BLUE
nullptr BLUE
operator BLUE
or BLUE
or_eq BLUE
private BLUE
protected BLUE
public BLUE
reflexpr BLUE
register BLUE
reinterpret_cast YELLOW
requires PURPLE
return purple
short BLUE
signed BLUE
sizeof BLUE
std RED
static BLUE
static_assert YELLOW
static_cast YELLOW
struct BLUE
switch PURPLE
synchronized BLUE
template YELLOW
this BLUE
throw PURPLE
true BLUE
try PURPLE
typedef BLUE
typeid blue
typename BLUE
union BLUE
unsigned BLUE
using PURPLE
virtual BLUE
void BLUE
volatile BLUE
while PURPLE
REP:
// \n GREY
# \n YELLOW
/* */ GREY
" " GREEN
' ' GREEN
187 changes: 187 additions & 0 deletions langs/default.lang
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
.default

KWD:
await PURPLE
break PURPLE
case PURPLE
catch PURPLE
class BLUE
const BLUE
continue PURPLE
debugger PURPLE
default PURPLE
delete PURPLE
do PURPLE
else PURPLE
enum PURPLE
export PURPLE
extends BLUE
false BLUE
finally PURPLE
for PURPLE
function BLUE
if PURPLE
implements PURPLE
import PURPLE
in PURPLE
instanceof PURPLE
interface PURPLE
let BLUE
new PURPLE
null BLUE
package PURPLE
private BLUE
protected BLUE
public BLUE
return PURPLE
super BLUE
switch PURPLE
static BLUE
this BLUE
throw PURPLE
try PURPLE
true BLUE
typeof BLUE
var BLUE
void BLUE
while PURPLE
with PURPLE
yield PURPLE
KWD:
alignas BLUE
alignof BLUE
and BLUE
and_eq BLUE
asm PURPLE
atomic_cancel BLUE
atomic_commit BLUE
atomic_noexcept BLUE
auto BLUE
bitand BLUE
bitor BLUE
bool BLUE
break PURPLE
case PURPLE
catch PURPLE
char BLUE
char8_t BLUE
char16_t BLUE
char32_t BLUE
class BLUE
compl BLUE
concept BLUE
const BLUE
consteval BLUE
constexpr BLUE
constinit BLUE
const_cast BLUE
continue PURPLE
co_await PURPLE
co_return PURPLE
co_yield PURPLE
decltype BLUE
default BLUE
delete PURPLE
do PURPLE
double BLUE
dynamic_cast BLUE
else PURPLE
enum BLUE
explicit BLUE
export PURPLE
extern BLUE
false BLUE
float BLUE
for PURPLE
friend BLUE
goto BLUE
if PURPLE
inline blue
int blue
long blue
mutable blue
namespace blue
new PURPLE
noexcept BLUE
not BLUE
not_eq BLUE
nullptr BLUE
operator BLUE
or BLUE
or_eq BLUE
private BLUE
protected BLUE
public BLUE
reflexpr BLUE
register BLUE
reinterpret_cast YELLOW
requires PURPLE
return purple
short BLUE
signed BLUE
sizeof BLUE
static BLUE
static_assert YELLOW
static_cast YELLOW
struct BLUE
switch PURPLE
synchronized BLUE
template YELLOW
this BLUE
throw PURPLE
true BLUE
try PURPLE
typedef BLUE
typeid blue
typename BLUE
union BLUE
unsigned BLUE
using PURPLE
virtual BLUE
void BLUE
volatile BLUE
while PURPLE
KWD:
False BLUE
None BLUE
True BLUE
and BLUE
as PURPLE
assert PURPLE
async PURPLE
await PURPLE
break PURPLE
class BLUE
continue PURPLE
def BLUE
del PURPLE
elif PURPLE
else PURPLE
except PURPLE
finally PURPLE
for PURPLE
from PURPLE
global BLUE
if PURPLE
import PURPLE
in PURPLE
is BLUE
lambda BLUE
nonlocal BLUE
not BLUE
or BLUE
pass PURPLE
raise PURPLE
return PURPLE
try PURPLE
while PURPLE
with PURPLE
yield PURPLE
REP:
# \n YELLOW
// \n GREY
/* */ GREY
@ \n BLUE
' ' GREEN
""" """ GREEN
" " GREEN
54 changes: 54 additions & 0 deletions langs/js.lang
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
.js

KWD:
await PURPLE
break PURPLE
case PURPLE
catch PURPLE
class BLUE
const BLUE
continue PURPLE
debugger PURPLE
default PURPLE
delete PURPLE
do PURPLE
else PURPLE
enum PURPLE
export PURPLE
extends BLUE
false BLUE
finally PURPLE
for PURPLE
function BLUE
if PURPLE
implements PURPLE
import PURPLE
in PURPLE
instanceof PURPLE
interface PURPLE
let BLUE
new PURPLE
null BLUE
package PURPLE
private BLUE
protected BLUE
public BLUE
return PURPLE
super BLUE
switch PURPLE
static BLUE
this BLUE
throw PURPLE
try PURPLE
true BLUE
typeof BLUE
var BLUE
void BLUE
while PURPLE
with PURPLE
yield PURPLE
REP:
// \n GREY
/* */ GREY
" " GREEN
' ' GREEN
Loading

0 comments on commit 941c8de

Please sign in to comment.