chore: update stage0

This commit is contained in:
Leonardo de Moura 2020-11-11 10:59:47 -08:00
parent fedd49de45
commit 38fc8a520d
5 changed files with 765 additions and 1473 deletions

View file

@ -74,7 +74,6 @@ def parenSpecial : Parser := optional (tupleTail <|> typeAscription)
@[builtinTermParser] def paren := parser! "(" >> ppDedent (withoutPosition (withoutForbidden (optional (termParser >> parenSpecial)))) >> ")"
@[builtinTermParser] def anonymousCtor := parser! "⟨" >> sepBy termParser ", " >> "⟩"
def optIdent : Parser := optional («try» (ident >> " : "))
@[builtinTermParser] def «if» := parser!:leadPrec "if " >> optIdent >> termParser >> " then " >> termParser >> " else " >> termParser
def fromTerm := parser! " from " >> termParser
def haveAssign := parser! " := " >> termParser
def haveDecl := optIdent >> termParser >> (haveAssign <|> fromTerm <|> byTactic)

View file

@ -315,6 +315,7 @@ lean_object* l_Lean_Parser_Command_structure_formatter___closed__17;
lean_object* l_Lean_Parser_Command_partial_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_export___elambda__1___closed__5;
lean_object* l_Lean_Parser_Command_print___elambda__1___closed__6;
extern lean_object* l_Lean_Parser_Term_doIf_parenthesizer___closed__4;
lean_object* l_Lean_Parser_Command_declVal___elambda__1(lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_unsafe___elambda__1___closed__4;
lean_object* l_Lean_Parser_Command_in___closed__5;
@ -1114,7 +1115,6 @@ lean_object* l_Lean_Parser_Command_structure_parenthesizer___closed__5;
lean_object* l_Lean_Parser_Command_openRenaming___elambda__1___closed__8;
lean_object* l___regBuiltin_Lean_Parser_Command_init__quot_formatter(lean_object*);
lean_object* l_Lean_Parser_Command_unsafe___closed__5;
extern lean_object* l_Lean_Parser_Term_doIf_parenthesizer___closed__2;
lean_object* l_Lean_Parser_Command_mutual___closed__9;
lean_object* l_Lean_Parser_Command_structure_parenthesizer___closed__14;
lean_object* l_Lean_Parser_Command_classInductive___closed__3;
@ -1872,7 +1872,6 @@ lean_object* l_Lean_Parser_Command_print_parenthesizer___closed__5;
lean_object* l_Lean_Parser_Command_openRenaming_parenthesizer___closed__1;
lean_object* l_Lean_Parser_Command_structure_parenthesizer___closed__16;
lean_object* l_Lean_Parser_Command_declId___closed__7;
extern lean_object* l_Lean_Parser_Term_doIf_formatter___closed__2;
lean_object* l___regBuiltin_Lean_Parser_Command_section_formatter(lean_object*);
lean_object* l_Lean_Parser_Command_openOnly___elambda__1___closed__3;
lean_object* l_Lean_Parser_Command_check__failure___elambda__1___closed__8;
@ -1909,6 +1908,7 @@ lean_object* l_Lean_Parser_Command_axiom___elambda__1(lean_object*, lean_object*
lean_object* l_Lean_Parser_Command_structExplicitBinder_formatter___closed__10;
lean_object* l_Lean_Parser_Command_set__option_parenthesizer___closed__7;
lean_object* l_Lean_Parser_Command_openRenaming___closed__8;
extern lean_object* l_Lean_Parser_Term_doIf_formatter___closed__4;
lean_object* l_Lean_Parser_Command_declaration_parenthesizer___closed__2;
lean_object* l_Lean_Parser_Command_docComment_formatter___closed__7;
lean_object* l_Lean_Parser_Command_classInductive_formatter___closed__2;
@ -28392,7 +28392,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Command_initialize_formatter___closed__6;
x_2 = l_Lean_Parser_Term_doIf_formatter___closed__2;
x_2 = l_Lean_Parser_Term_doIf_formatter___closed__4;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
lean_closure_set(x_3, 0, x_1);
lean_closure_set(x_3, 1, x_2);
@ -28528,7 +28528,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Command_initialize_parenthesizer___closed__6;
x_2 = l_Lean_Parser_Term_doIf_parenthesizer___closed__2;
x_2 = l_Lean_Parser_Term_doIf_parenthesizer___closed__4;
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
lean_closure_set(x_3, 0, x_1);
lean_closure_set(x_3, 1, x_2);

File diff suppressed because it is too large Load diff

View file

@ -341,6 +341,7 @@ lean_object* l_Lean_Parser_Syntax_allowTrailingSep___elambda__1___closed__8;
lean_object* l_Lean_Parser_orelseFn(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_registerBuiltinDynamicParserAttribute(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Syntax_try___closed__7;
extern lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__28;
lean_object* l_Lean_Parser_Command_macro___closed__12;
lean_object* l_Lean_Parser_Command_macroTail_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Syntax_notFollowedBy___elambda__1___closed__6;
@ -1876,7 +1877,6 @@ lean_object* l_Lean_Parser_Command_macroTail___closed__1;
lean_object* l_Lean_Parser_Syntax_checkColGt___elambda__1___closed__3;
lean_object* l_Lean_Parser_Syntax_try___elambda__1___closed__2;
lean_object* l_Lean_Parser_Command_mixfixKind_formatter___closed__4;
extern lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27;
lean_object* l_Lean_PrettyPrinter_Parenthesizer_identEq_parenthesizer___boxed(lean_object*, lean_object*);
lean_object* l_Lean_Parser_Command_infixl_formatter___closed__3;
lean_object* l___regBuiltin_Lean_Parser_Command_macro_parenthesizer(lean_object*);
@ -5792,7 +5792,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Parser_Syntax_paren___elambda__1___closed__2;
x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27;
x_2 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__28;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
@ -5811,7 +5811,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_try___elambda__1___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4;
x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27;
x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__28;
x_2 = l_Lean_Parser_Syntax_try___elambda__1___closed__2;
x_3 = 1;
x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3);
@ -5976,7 +5976,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_try_formatter___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5;
x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27;
x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__28;
x_2 = l_Lean_Parser_Syntax_try___elambda__1___closed__2;
x_3 = 1;
x_4 = lean_box(x_3);
@ -6056,7 +6056,7 @@ static lean_object* _init_l_Lean_Parser_Syntax_try_parenthesizer___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5;
x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__27;
x_1 = l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda__1___closed__28;
x_2 = l_Lean_Parser_Syntax_try___elambda__1___closed__2;
x_3 = 1;
x_4 = lean_box(x_3);

File diff suppressed because it is too large Load diff