[code] Re: A simple MediaWiki lexer

From: Alexander Misel <alexander_misel.att.live.cn>
Date: Wed, 2 Oct 2019 13:07:49 +0000

Line 38 could be simplified to
lex:add_rule('operator', token(lexer.OPERATOR, S('-=|#~!')))
PS: I left the copyright field to be same as other lexers (i.e. Copyright 2006-2019 Mitchell...)
From: Alexander Misel <alexander_misel.att.live.cn>
Sent: Wednesday, October 2, 2019 21:01
To: code.att.foicica.com <code.att.foicica.com>
Subject: [code] A simple MediaWiki lexer

MediaWiki is the language used by Wikipedia and a lot of wiki websites. I didn't try to read complex rules. Just simple lexer that get it work. See screenshots below.

You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 02 Oct 2019 - 09:07:49 EDT

This archive was generated by hypermail 2.2.0 : Thu 03 Oct 2019 - 06:47:21 EDT