Add files via upload

This commit is contained in:
Lerking
2018-07-18 12:14:42 +02:00
committed by GitHub
parent 8ff9e5136a
commit 8d69458150
6 changed files with 438 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# (c) 2018 Jan Lerking
# Python lexer for c header files.
# Used for creating corresponding NASM include files.
def lexer_get_token(k):
prep = keywords.preprocessor_directives
reg = keywords.regular
token = ""
if w in prep:
token = prep(w)
if w in reg:
token = reg(w)
return token