mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 21:16:02 +01:00
* Optimised the SDF grammar.
This commit is contained in:
parent
3648d1c732
commit
abd1878b26
2 changed files with 15 additions and 94 deletions
|
|
@ -45,10 +45,10 @@ struct Cleanup : TermFun
|
|||
return ATmake("Int(<int>)", n);
|
||||
}
|
||||
|
||||
if (atMatch(m, e) >> "Bool" >> "true")
|
||||
if (atMatch(m, e) >> "Var" >> "true")
|
||||
return ATmake("Bool(True)");
|
||||
|
||||
if (atMatch(m, e) >> "Bool" >> "false")
|
||||
if (atMatch(m, e) >> "Var" >> "false")
|
||||
return ATmake("Bool(False)");
|
||||
|
||||
if (atMatch(m, e) >> "ExprNil")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue