Add files via upload
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user