Old TODO
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
Direzione di ricerca
Inizia esaminando le voci TODO e il caso referenziato tests/ParGF.y per la gestione degli errori senza %lexer. Separa le proposte elencate relative a parser, lexer, layout e naming in singole issue, registrando un ambito sufficiente per ciascuna. Il lavoro è completato quando il vecchio TODO è stato sottoposto a triage in issue attuabili o in elementi esplicitamente chiusi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
This was the contents of the old TODO file. We should triage these at some point and put in their own issues.
* happyError should take the current token as an argument in %lexer mode;
it's silly not to, because it means the monad has to keep track of the
previous token in order to report it in the error message.
* BUG in error handling without %lexer: see tests/ParGF.y
* allow polymorphic type signatures for productions.
* allow omitted semnatic values, defaulting to $1?
* unlit properly
* maintain indentation in code between { } so that layout works.
-OLD-------------------------------------------------------------------------
1. Add in a simple lexical analyser
2. Add in choice for lexical analyis
%lexerstyle original -- the default
%lexerstyle auto
%lexerstyle monadic
---[1] :: [Token] -> a ---------------------------------------------------------
As things are now :-(
---[2] :: String -> a ----------------------------------------------------------
Using the special lexer, as defined using
%macro letter ( [A-Z][a-z] )
%autotoken
id ( {letter}({digit}|{letter}) )
---[3] :: ParseM Token -> ParseM a ---------------------------------------------
This presumes the exsitance of the defintions:
type ParseM a b c = a -> ParseR a b
data ParseR a b c = ParseSucc a b | ParseFail c
thenPM :: a -> ParseM a b c
returnPM :: ParseM a b c -> (a -> ParseM d b c) -> ParseM d b c ->
and is intended for *serious* parsers, like our Haskell parser.
You need to give a %eof
-----------------------------------------------------------------------------
******************************************************************************
ToAdd:
--magic-name Sad
allows other names to be used as the *Magic* name, currently
only Happy.
- Lingua principale
- Haskell
- Stelle
- 323
- Fork
- 88
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di haskell/happy
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Tutte le issue di haskell/happy
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
haskell/bytestring#730 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
seal-harness/seal-harness#399 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
fmidue/codeworld-tasks#124 ·
-
allow haskell-src-exts-1.24Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
reflex-frp/reflex#563 ·