Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
bd9bed7
refactor(backend): Begin definition of C backend
Mightyjo Jun 1, 2022
a70446c
refactor(backends): Replace out* calls with backend emits.
Mightyjo Mar 13, 2023
c6b4e93
refactor(backend): Hide backend implementation details.
Mightyjo Mar 13, 2023
ffdfe88
feat(backend): Add backend stack.
Mightyjo Mar 3, 2024
eb2330d
fix: Restore BUILT_SOURCES because parallel builds are broken
Mightyjo Jan 6, 2025
2874c68
feat: Shakeout backend stack bugs
Mightyjo Jan 6, 2025
aeb7715
feat: Shakeout backend stack bugs
Mightyjo Jan 6, 2025
d4e058e
feat: Shakeout backend stack bugs
Mightyjo Jan 7, 2025
7404570
fix: Add BUILT_SOURCES sync points for parallel make
Mightyjo Jan 7, 2025
ba8e9f1
test: Rename alloc_extra_r.l to match it's reentrant behavior
Mightyjo Jan 7, 2025
ce6091b
test: Add reentrant option to c99 tests
Mightyjo Jan 7, 2025
ac5656d
test: Add reentrant option to c99 tests
Mightyjo Jan 7, 2025
ae9c274
test\!: UNDO Turn off tests for fake Go backend
Mightyjo Jan 7, 2025
bfedecf
test\!: UNDO Turn off tests for fake Go backend
Mightyjo Feb 4, 2025
49b6857
feat(skel): Add DEAFULT skel ID to enum
Mightyjo Feb 4, 2025
1d041ed
feat(skel): Comment backend api
Mightyjo Feb 4, 2025
b1bec53
feat(skel): remove out, outn, outc, and comment methods
Mightyjo Feb 4, 2025
4c48cc3
feat: Improve comments
Mightyjo Feb 5, 2025
468f83f
feat: Refactor out_m4_define away
Mightyjo Feb 6, 2025
538a0df
feat: Refactor YY_SC_DEFS emission
Mightyjo Feb 6, 2025
3a02656
feat: Refactor out_m4_define away
Mightyjo Feb 6, 2025
8000f16
feat: Refactor out_str_dec away
Mightyjo Feb 6, 2025
25547c4
feat: Remove out_hex
Mightyjo Feb 6, 2025
e6ba991
feat: Remove out_dec
Mightyjo Feb 6, 2025
8093d7c
feat: Remove out_dec2
Mightyjo Feb 6, 2025
d744205
feat: Remove out_str
Mightyjo Feb 6, 2025
625864e
feat: Name backend handle more clearly
Mightyjo Feb 6, 2025
eafe5ee
feat: Name backend handle more clearly
Mightyjo Feb 6, 2025
9380076
feat: Refactor use of optimize_pack output
Mightyjo Feb 6, 2025
4720aab
feat: Add C99 backend
Mightyjo Feb 6, 2025
fd0d12b
feat: Add C99 backend
Mightyjo Feb 6, 2025
259052d
revert: 3a368c0 and 91982ad
Mightyjo Feb 6, 2025
9c0d379
feat: Refactor format string getters out of emission code for use in …
Mightyjo Feb 10, 2025
5d34821
feat: Refactor common emitter code into skeletons.c
Mightyjo Feb 10, 2025
ca18127
feat: Replace M4_HOOK with backend calls in parse.y
Mightyjo Feb 10, 2025
df8b0f2
feat: Set backend in parse.y when ctrl.emit option is recognized.
Mightyjo Feb 10, 2025
23d1533
feat: Fix conditional blocking around backend setup in parse.y
Mightyjo Feb 10, 2025
1b91cde
Remove mistakenly tracked tests outputs
Mightyjo Aug 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ flex-*/
libtool
m4/
stamp-*
.vscode
15 changes: 15 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ endif
COMMON_SOURCES = \
buf.c \
ccl.c \
cpp-backend.c \
cpp-backend.h \
c99-backend.c \
c99-backend.h \
dfa.c \
ecs.c \
filter.c \
Expand All @@ -82,6 +86,7 @@ COMMON_SOURCES = \
scanopt.c \
scanopt.h \
skeletons.c \
skeletons.h \
sym.c \
tables.c \
tables.h \
Expand Down Expand Up @@ -119,6 +124,16 @@ SKELINCLUDES = \
c99-flex.h \
go-flex.h

# DO NOT REMOVE - Ignore StackOverflow
# This variable is misnamed and misunderstood. It tells Make that the named
# sources are synchronization points for parallel builds (e.g. -j8).
# If you remove or change this variable without testing large parallel builds,
# make will fail randomly. Stop "fixing" this based on StackOverflow threads, please.
#
BUILT_SOURCES = $(SKELINCLUDES) stage1scan.c stage2scan.c
#
# DO NOT REMOVE

cpp-flex.h: cpp-flex.skl mkskel.sh flexint_shared.h tables_shared.h tables_shared.c
$(SHELL) $(srcdir)/mkskel.sh cpp $(srcdir) $(m4) $(VERSION) > $@.tmp
$(SHELL) $(srcdir)/chkskel.sh $@.tmp
Expand Down
Loading