Skip to content

Generator of an efficient trie-based keyword lexer, targeting the C language.

Notifications You must be signed in to change notification settings

florian-pe/keywords.pl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

keywords.pl

This script is a refactor of Devel::Tokenizer::C into a more functional style. It takes as argument a file containing a list of keywords and generates an efficient lexer function for recognizing those keywords.

The current list of keywords in keywords.txt has been extracted from the Perl/perl5 repository from the file regen/keywords.pl.

./keywords.pl keywords.txt > lexer_keywords.c
gcc -c lexer_keywords.c -o lexer_keywords.o

About

Generator of an efficient trie-based keyword lexer, targeting the C language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published