I am currently serving in the National Guard of Ukraine and am not able to perform my maintainer duties.
Please see https://ro-che.info/articles/2014-02-08-my-haskell-will.
Applicative lexer
License: MIT License
I am currently serving in the National Guard of Ukraine and am not able to perform my maintainer duties.
Please see https://ro-che.info/articles/2014-02-08-my-haskell-will.
Any plans to get lexer-applicative
on Stackage?
With a sufficiently new base the build fails due to missing Semigroup
instances for Lexer
and Recognizer
.
Is it possible to build recognizers and runLexer
that work on Text
rather than the hardcoded Char
and String
?
Thank you for these projects.
Thank you for this lovely work!
As the title, I wonder if runLexer
, or the whole package in general, is capable of converting a stream of chars into tokens incrementally?
(looking suspicious!)
https://github.com/feuerbach/lexer-applicative/blob/7905a6373d7f6bd7b85a52f5aa7a12ab2cec2510/src/Language/Lexer/Applicative.hs#L280-L284
The following result hangs:
{-# LANGUAGE OverloadedStrings #-}
import Language.Lexer.Applicative (tokens)
import Text.Regex.Applicative
import qualified Data.Loc as Loc
import qualified Data.Char as Char
type Token = Integer
token :: RE Char Token
token = "one" *> pure 1
spaces :: RE Char ()
spaces = (many $ psym Char.isSpace) *> pure ()
result :: [Loc.L Token]
result = tokens token spaces "filename" "one -"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.