From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by sourceware.org (Postfix) with ESMTPS id 76C813858C50; Sat, 18 Mar 2023 08:59:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 76C813858C50 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-x52a.google.com with SMTP id r11so28898992edd.5; Sat, 18 Mar 2023 01:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679129986; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3+jQIT0g9rZjbc3zVJNmrArw6gaxldkNf+61YpDE9Ng=; b=Y225/nk63GtY7pFHS82DJm7BrTvct51cO4ZwkVfGry4vtLV94Z+My7O8IcXlUSujlZ T7GPf4XYxNfClYO3LxAutDOIfC3uq6XJUwaVnzFX1SKj5/2i2AtOC+hV3osCeJ43UjB/ +pvjojtvL4lEQs/zuXUYe12usp9nHdk92UOAtI++jM+9xkUFIIW+GugFTMkgFf3MlkPs y+am4ZbdJjYTA1AyashUtQhU2/CS92O+7gtG1hsKA0iAKTy5NzoM7bCpFCSRY6wEn4nP iap4MhRAi2CWFwp6JkmJ/hStFhGlDP+ImVEsJRsXQXmxBs5wAIrZJJ4YDKpLt97s6PUi SyOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679129986; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3+jQIT0g9rZjbc3zVJNmrArw6gaxldkNf+61YpDE9Ng=; b=J+CortjhQ9prsi4bYExDSNUu9wRs+xM0Wj0bhv4qIqQC/KR+32qmU3+kA6ncdl6glP MGYa1mYXXoIuMbgB6Xt+q76mkSplpSJ/9PYwDwL1vISsFMCKhlhOTYF3FpUw9nfMXGIE e9BqcAiWwYs6ym19548S+k9YeotVegNTqM2FI42OCTUY503ww+AcAhUXvLYaYvjqgiwF nLeCJ4ByJjXgGgmbS08VyXqE/PUf89sjsKuK6BuJsI86wnibu32Gv7dr9ZLNrCs4D2mj NnB6iSL+fMzykXRvVmnLpfIHYVXn8AYkR1UePJ85p3qBdngh3OtcSNWD4wudIkGj/jna RiqA== X-Gm-Message-State: AO0yUKUlNg9BtT71t60KNc4LmUMJ6KumpVrFdVBtoLGpKJDBTpNDd/Tb /1YbyK8vdfwp0I0XcETD/TK4DLG1cDoHShIAjf8= X-Google-Smtp-Source: AK7set8+1/Ypd0q524njSlLKTqT22tXUJb+J95T1LmnNYOxjfT5HJ6zqn4kgBmst+uTsSHwb+zaA7C1J6avZ/ap6Cd4= X-Received: by 2002:a05:6402:2986:b0:4af:6e95:85e9 with SMTP id eq6-20020a056402298600b004af6e9585e9mr3926985edb.4.1679129985962; Sat, 18 Mar 2023 01:59:45 -0700 (PDT) MIME-Version: 1.0 References: <87lejxujso.fsf@euler.schwinge.homeip.net> In-Reply-To: From: Raiki Tamura Date: Sat, 18 Mar 2023 17:59:34 +0900 Message-ID: Subject: Re: [GSoC] gccrs Unicode support To: Jonathan Wakely Cc: Mark Wielaard , Thomas Schwinge , Jakub Jelinek , Philip Herron , "gcc@gcc.gnu.org" , gcc-rust@gcc.gnu.org, David Edelsohn , Arthur Cohen , =?UTF-8?Q?Arsen_Arsenovi=C4=87?= Content-Type: multipart/alternative; boundary="00000000000058589605f728ea7a" X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --00000000000058589605f728ea7a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2023=E5=B9=B43=E6=9C=8818=E6=97=A5(=E5=9C=9F) 17:47 Jonathan Wakely : > On Sat, 18 Mar 2023, 08:32 Raiki Tamura via Gcc, wrote: > >> Thank you everyone for your advice. >> Some kinds of names are restricted to unicode alphabetic/numeric in Rust. >> > > Doesn't it use the same rules as C++, based on XID_Start and XID_Continue? > That should already be supported. > Yes, C++ and Rust use the same rules for identifiers (described in UAX#31) and we can reuse it in the lexer of gccrs. I was talking about values of Rust's crate_name attributes, which only allow Unicode alphabetic/numeric characters. (Ref: https://doc.rust-lang.org/reference/crates-and-source-files.html#the-crate_= name-attribute ) Raiki Tamura --00000000000058589605f728ea7a--