Skip to content

Commit

Permalink
Merge branch 'update'
Browse files Browse the repository at this point in the history
  • Loading branch information
fennecdjay committed Feb 25, 2024
2 parents 40e0eea + 69dfc4f commit f5b426b
Show file tree
Hide file tree
Showing 36 changed files with 6,156 additions and 5,293 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ config.mk
.d
.po
html
.mo
gwparse
278 changes: 0 additions & 278 deletions AstDesc.txt

This file was deleted.

13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ endif
obj := $(src:.c=.o)
obj += src/lexer.o src/parser.o

CFLAGS += -Iinclude -D_GNU_SOURCE
CFLAGS += -Iinclude -D_GNU_SOURCE -I${UTIL_DIR}/libtermcolor/include

# (parser) internationalization (linux only for now)
ifeq ($(shell uname), Linux)
Expand All @@ -35,11 +35,11 @@ libgwion_ast.a: ${obj}

include/lexer.h src/lexer.c: src/gwion.l
$(info generating lexer)
@${LEX} --header-file=include/lexer.h -o $@ $<
@${LEX} ${LEX_OPT} --header-file=include/lexer.h -o $@ $<

include/parser.h src/parser.c: src/gwion.y
$(info generating parser)
@${YACC} --defines=include/parser.h -Wno-yacc -o $@ $<
@${YACC} ${YACC_OPT} --defines=include/parser.h -Wno-yacc -o $@ $<

clean:
$(info cleaning)
Expand All @@ -57,5 +57,12 @@ uninstall: translation-uninstall
rm ${DESTDIR}/${PREFIX}/bin/lib${PACKAGE}.a
rm -r ${DESTDIR}/${PREFIX}/include/gwion/ast

gwparse: main.o
${CC} -o $@ $< -lfl libgwion_ast.a libprettyerr/libprettyerr.a ../util/libgwion_util.a -lpthread -lm

test: pass/xxx.o
rm $<
include $(wildcard .d/*.d)
include ${UTIL_DIR}/locale.mk


22 changes: 0 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,8 @@
[![Build Status](https://travis-ci.org/Gwion/gwion-ast.svg?branch=master)](https://travis-ci.org/Gwion/gwion-ast)
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
[![BCH compliance](https://bettercodehub.com/edge/badge/Gwion/gwion-ast?branch=master)](https://bettercodehub.com/)
[![Line Count](https://tokei.rs/b1/github/Gwion/gwion-ast)](https://github.com/Gwion/gwion-ast)

# Gwion-AST

Gwion language lexer, parser, preprocessor and abstract syntatxic tree.
Meant to be be used as a submodule and ease Tooling

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://github.com/Pranav2612000"><img src="https://avatars3.githubusercontent.com/u/20909078?v=4" width="100px;" alt=""/><br /><sub><b>Pranav Joglekar</b></sub></a><br /><a href="https://github.com/Gwion/gwion-ast/issues?q=author%3APranav2612000" title="Bug reports">🐛</a></td>
</tr>
</table>

<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
Loading

0 comments on commit f5b426b

Please sign in to comment.