{"id":89487,"date":"2020-07-23T01:42:30","date_gmt":"2020-07-22T23:42:30","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/re2c-2-0"},"modified":"2020-07-23T01:42:30","modified_gmt":"2020-07-22T23:42:30","slug":"re2c-2-0","status":"publish","type":"post","link":"https:\/\/prohoster.info\/ro\/blog\/news\/re2c-2-0","title":{"rendered":"re2c 2.0","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Luni, 20 iulie, a fost lansat\u0103 re2c \u2013 generatorul de analizoare lexicale rapide.<br \/>\nModific\u0103ri principale:<\/p>\n<ul>\n<li>\n<p>A fost ad\u0103ugat suport pentru limbajul Go<br \/>\n(se activeaz\u0103 fie prin op\u021biunea &#8212;lang go pentru re2c, fie ca un program separat re2go).<br \/>\nDocumenta\u021bia pentru C \u0219i Go este generat\u0103 din acela\u0219i text, dar cu exemple de cod diferite.<br \/>\nSubsystema de generare de cod a fost complet ref\u0103cut\u0103 \u00een re2c, ceea ce<br \/>\nar trebui s\u0103 faciliteze suportul pentru noi limbaje \u00een viitor.<\/p>\n<\/li>\n<li>\n<noindex><\/p>\n<p>A fost ad\u0103ugat\u0103 o alternativ\u0103 de sistem de construire folosind CMake (mul\u021bumiri lui <a rel=\"nofollow\" href=\"https:\/\/github.com\/ligfx\">ligfx<\/a>!).<\/noindex><br \/>\n\u00cencerc\u0103rile de a traduce re2c pe CMake au fost f\u0103cute de mult timp, dar p\u00e2n\u0103 la ligfx nimeni nu a<br \/>\npropun un solu\u021bie complet\u0103.<br \/>\nVechea sistem de construire folosind Autotools continu\u0103 s\u0103 fie suportat \u0219i utilizat,<br \/>\n\u0219i \u00een viitorul apropiat nu sunt planuri de abandonare a acesteia (par\u021bial pentru a nu crea<br \/>\nprobleme dezvoltatorilor de distribu\u021bii, par\u021bial pentru c\u0103 vechea sistem de construire<br \/>\neste mai stabil\u0103 \u0219i concis\u0103 dec\u00e2t noua).<br \/>\nAmbele sisteme sunt testate continuu cu ajutorul Travis CI.<\/p>\n<\/li>\n<li>\n<p>A fost ad\u0103ugat\u0103 posibilitatea de a specifica codul interfe\u021bei \u00een configura\u021bii c\u00e2nd se folose\u0219te<br \/>\nAPIs generice (generic API). Anterior, majoritatea API-urilor trebuiau definite sub form\u0103 de<br \/>\nfunc\u021bii sau macrocomenzi func\u021bionale. Acum pot fi definite sub form\u0103 de \u0219iruri arbitrare<br \/>\ncu parametrii \u0219ablon numi\u021bi de tipul @@{name} sau doar @@ (dac\u0103<br \/>\nparametrul este unul \u0219i nu exist\u0103 ambiguitate). Stilul API este specificat prin configura\u021bia<br \/>\nre2c:api:style (valoarea functions stabile\u0219te stilul func\u021bional, iar free-form &ndash; liber).<\/p>\n<\/li>\n<li>\n<p>Am \u00eembun\u0103t\u0103\u021bit func\u021bionarea op\u021biunii -c, &#8212;start-conditions, care permite combinarea mai multor<br \/>\nlexere interdependente \u00eentr-un singur bloc re2c. Acum se pot utiliza<br \/>\nblocuri obi\u0219nuite al\u0103turi de condi\u021bionale \u0219i defini mai multe blocuri condi\u021bionale nesus\u021binute<br \/>\n\u00een acela\u0219i fi\u0219ier.<br \/>\nAm \u00eembun\u0103t\u0103\u021bit func\u021bionarea op\u021biunii -r, &#8212;reuse (reciclarea codului dintr-un bloc<br \/>\n\u00een alte blocuri) \u00een combina\u021bie cu op\u021biunile -c, &#8212;start-conditions \u0219i -f, &#8212;storable-state<br \/>\n(lexer cu stare salvabil\u0103, care poate fi \u00eentrerupt \u00een orice moment<br \/>\n\u0219i continuat ulterior).<\/p>\n<\/li>\n<li>\n<p>A fost corectat\u0103 o eroare \u00een algoritmul recent ad\u0103ugat pentru procesarea sf\u00e2r\u0219itului datelor de intrare<br \/>\n(EOF rule), care \u00een cazuri rare provoca o procesare gre\u0219it\u0103<br \/>\na regulilor suprapuse.<\/p>\n<\/li>\n<li>\n<p>Procesul de bootstrap a fost simplificat. Anterior, sistemul de construire \u00eencerca s\u0103 g\u0103seasc\u0103 dinamic un<br \/>\nre2c deja construit care s\u0103 fie folosit pentru a se reconstrui singur.<br \/>\nAceasta a dus la dependen\u021be incorecte (deoarece graficul dependen\u021belor devenea<br \/>\ndinamic, ceea ce majoritatea sistemelor de build nu apreciaz\u0103).<br \/>\nAcum, pentru a recompila lexerii, este necesar s\u0103<br \/>\nconfigura\u021bi \u00een mod explicit sistemul de build \u0219i s\u0103 stabili\u021bi variabila RE2C_FOR_BUILD.<\/p>\n<\/li>\n<\/ul>\n<p>Mul\u021bumesc tuturor celor care au participat la preg\u0103tirea acestei versiuni!<\/p>\n<p>Sursa: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"http:\/\/www.linux.org.ru\/news\/development\/15820642\">linux.org.ru<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0412 \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a 20 \u0438\u044e\u043b\u044f \u0432\u044b\u0448\u0435\u043b \u0440\u0435\u043b\u0438\u0437 re2c &ndash; \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u043b\u0435\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f: \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u044f\u0437\u044b\u043a\u0430 Go (\u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u043e\u043f\u0446\u0438\u0435\u0439 &#8212;lang go \u0434\u043b\u044f re2c, \u0438\u043b\u0438 \u0432 \u0432\u0438\u0434\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b re2go). \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0434\u043b\u044f C \u0438 Go \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u0442\u0435\u043a\u0441\u0442\u0430, \u043d\u043e \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0434\u0430. \u041f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 re2c, \u0447\u0442\u043e [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-89487","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0412 \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a 20 \u0438\u044e\u043b\u044f \u0432\u044b\u0448\u0435\u043b \u0440\u0435\u043b\u0438\u0437 re2c \u2013 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u043b\u0435\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/ro\/blog\/news\/re2c-2-0\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"ro_RO\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47re2c 2.0 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0412 \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a 20 \u0438\u044e\u043b\u044f \u0432\u044b\u0448\u0435\u043b \u0440\u0435\u043b\u0438\u0437 re2c \u2013 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u043b\u0435\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/ro\/blog\/news\/re2c-2-0\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-07-22T23:42:30+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-07-22T23:42:30+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47re2c 2.0 | ProHoster","description":"Luni, 20 iulie, a fost lansat\u0103 versiunea re2c \u2013 generatorul de analizatori lexicale rapizi.","canonical_url":"https:\/\/prohoster.info\/ro\/blog\/news\/re2c-2-0","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"ro_RO","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47re2c 2.0 | ProHoster","og:description":"\u0412 \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a 20 \u0438\u044e\u043b\u044f \u0432\u044b\u0448\u0435\u043b \u0440\u0435\u043b\u0438\u0437 re2c \u2013 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u043b\u0435\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432.","og:url":"https:\/\/prohoster.info\/ro\/blog\/news\/re2c-2-0","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-07-22T23:42:30+00:00","article:modified_time":"2020-07-22T23:42:30+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"89487","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 13:11:25","updated":"2022-10-03 15:55:04","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/posts\/89487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/comments?post=89487"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/posts\/89487\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/media?parent=89487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/categories?post=89487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/tags?post=89487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}