8000 pgsphere/sscan.l at 9c91983c3406421a2d6d8f0ade2603a6dd7fa1cc · postgrespro/pgsphere · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"data","path":"data","contentType":"directory"},{"name":"doc","path":"doc","contentType":"directory"},{"name":"expected","path":"expected","contentType":"directory"},{"name":"healpix_bare","path":"healpix_bare","contentType":"directory"},{"name":"sql","path":"sql","contentType":"directory"},{"name":"test_top_build_dir","path":"test_top_build_dir","contentType":"directory"},{"name":"testsuite","path":"testsuite","contentType":"directory"},{"name":"upgrade_scripts","path":"upgrade_scripts","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".gitlab-ci.yml","path":".gitlab-ci.yml","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"COPYRIGHT.pg_sphere","path":"COPYRIGHT.pg_sphere","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.pg_sphere","path":"README.pg_sphere","contentType":"file"},{"name":"box.c","path":"box.c","contentType":"file"},{"name":"box.h","path":"box.h","contentType":"file"},{"name":"circle.c","path":"circle.c","contentType":"file"},{"name":"circle.h","path":"circle.h","contentType":"file"},{"name":"ellipse.c","path":"ellipse.c","contentType":"file"},{"name":"ellipse.h","path":"ellipse.h","contentType":"file"},{"name":"euler.c","path":"euler.c","contentType":"file"},{"name":"euler.h","path":"euler.h","contentType":"file"},{"name":"gist.c","path":"gist.c","contentType":"file"},{"name":"gist.h","path":"gist.h","contentType":"file"},{"name":"gnomo.c","path":"gnomo.c","contentType":"file"},{"name":"gnomo.h","path":"gnomo.h","contentType":"file"},{"name":"gnomo.sql.in","path":"gnomo.sql.in","contentType":"file"},{"name":"gq_cache.c","path":"gq_cache.c","contentType":"file"},{"name":"healpix.c","path":"healpix.c","contentType":"file"},{"name":"healpix.sql.in","path":"healpix.sql.in","contentType":"file"},{"name":"index_9.5","path":"index_9.5","contentType":"file"},{"name":"key.c","path":"key.c","contentType":"file"},{"name":"key.h","path":"key.h","contentType":"file"},{"name":"line.c","path":"line.c","contentType":"file"},{"name":"line.h","path":"line.h","contentType":"file"},{"name":"moc.c","path":"moc.c","contentType":"file"},{"name":"output.c","path":"output.c","contentType":"file"},{"name":"path.c","path":"path.c","contentType":"file"},{"name":"path.h","path":"path.h","contentType":"file"},{"name":"pg_sphere--1.2.0.sql.in","path":"pg_sphere--1.2.0.sql.in","contentType":"file"},{"name":"pg_sphere.control","path":"pg_sphere.control","contentType":"file"},{"name":"pg_sphere.h","path":"pg_sphere.h","contentType":"file"},{"name":"pgs_9.5.sql.in","path":"pgs_9.5.sql.in","contentType":"file"},{"name":"pgs_box.sql.in","path":"pgs_box.sql.in","contentType":"file"},{"name":"pgs_chealpix.h","path":"pgs_chealpix.h","contentType":"file"},{"name":"pgs_circle.sql.in","path":"pgs_circle.sql.in","contentType":"file"},{"name":"pgs_contains_ops.sql.in","path":"pgs_contains_ops.sql.in","contentType":"file"},{"name":"pgs_contains_ops_compat.sql.in","path":"pgs_contains_ops_compat.sql.in","contentType":"file"},{"name":"pgs_ellipse.sql.in","path":"pgs_ellipse.sql.in","contentType":"file"},{"name":"pgs_euler.sql.in","path":"pgs_euler.sql.in","contentType":"file"},{"name":"pgs_gist.sql.in","path":"pgs_gist.sql.in","contentType":"file"},{"name":"pgs_gist_pointkey.sql.in","path":"pgs_gist_pointkey.sql.in","contentType":"file"},{"name":"pgs_gist_spoint3.sql.in","path":"pgs_gist_spoint3.sql.in","contentType":"file"},{"name":"pgs_healpix.h","path":"pgs_healpix.h","contentType":"file"},{"name":"pgs_line.sql.in","path":"pgs_line.sql.in","contentType":"file"},{"name":"pgs_moc.h","path":"pgs_moc.h","contentType":"file"},{"name":"pgs_moc_compat.sql.in","path":"pgs_moc_compat.sql.in","contentType":"file"},{"name":"pgs_moc_ops.sql.in","path":"pgs_moc_ops.sql.in","contentType":"file"},{"name":"pgs_moc_type.sql.in","path":"pgs_moc_type.sql.in","contentType":"file"},{"name":"pgs_path.sql.in","path":"pgs_path.sql.in","contentType":"file"},{"name":"pgs_point.sql.in","path":"pgs_point.sql.in","contentType":"file"},{"name":"pgs_polygon.sql.in","path":"pgs_polygon.sql.in","contentType":"file"},{"name":"pgs_process_moc.h","path":"pgs_process_moc.h","contentType":"file"},{"name":"pgs_types.sql.in","path":"pgs_types.sql.in","contentType":"file"},{"name":"pgs_util.h","path":"pgs_util.h","contentType":"file"},{"name":"point.c","path":"point.c","contentType":"file"},{"name":"point.h","path":"point.h","contentType":"file"},{"name":"polygon.c","path":"polygon.c","contentType":"file"},{"name":"polygon.h","path":"polygon.h","contentType":"file"},{"name":"process_moc.cpp","path":"process_moc.cpp","contentType":"file"},{"name":"sbuffer.c","path":"sbuffer.c","contentType":"file"},{"name":"sbuffer.h","path":"sbuffer.h","contentType":"file"},{"name":"sparse.c","path":"sparse.c","contentType":"file"},{"name":"sparse.h","path":"sparse.h","contentType":"file"},{"name":"sparse.y","path":"sparse.y","contentType":"file"},{"name":"sscan.c","path":"sscan.c","contentType":"file"},{"name":"sscan.l","path":"sscan.l","contentType":"file"},{"name":"types.h","path":"types.h","contentType":"file"},{"name":"vector3d.c","path":"vector3d.c","contentType":"file"},{"name":"vector3d.h","path":"vector3d.h","contentType":"file"}],"totalCount":80}},"fileTreeProcessingTime":49.824219,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":329868305,"defaultBranch":"master","name":"pgsphere","ownerLogin":"postgrespro","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2021-01-15T09:36:13.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/12005770?v=4","public":true,"private":false,"isOrgOwned":true},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"9c91983c3406421a2d6d8f0ade2603a6dd7fa1cc","listCacheKey":"v0:1714550701.0","canEdit":false,"refType":"tree","currentOid":"9c91983c3406421a2d6d8f0ade2603a6dd7fa1cc"},"path":"sscan.l","currentUser":null,"blob":{"rawLines":["%{","#include \u003cstdio.h\u003e","#include \"string.h\"","#include \"sparse.h\"","#include \"sbuffer.h\"","","#define YY_DECL int sphere_yylex(void)","YY_DECL;","#define yylval sphere_yylval","","#undef YY_INPUT","#define YY_NO_INPUT","#define YY_INPUT(buf, result, max_size) \\","{ \\","\tresult = get_buffer(buf, max_size); \\","\tresult = (result \u003e 0) ? (result) : (YY_NULL); \\","}","","void sphere_flush_scanner_buffer(void)","{","\tYY_FLUSH_BUFFER;","}","%}","","%option 8bit","%option never-interactive","%option nounput","%option noyywrap","","int\t\t\t\t[0-9]+","sign\t\t\t[+-]","real\t\t\t({int})?\\.({int})","float\t\t\t({int}|{real})([eE]{sign}{int})?","","%%","{sign}\t\t\tsphere_yylval.i = (strcmp(\"-\", yytext)) ? (1) : (-1); return SIGN;","{int}\t\t\tsphere_yylval.i = atoi(yytext); return INT;","{float}\t\t\tsphere_yylval.d = atof(yytext); return FLOAT;","[x-zX-Z]{3}\t\tmemcpy(\u0026sphere_yylval.c[0], yytext, 3); return EULERAXIS;","h\t\t\t\treturn HOUR;","d\t\t\t\treturn DEG;","'\t\t\t\treturn MIN;","m\t\t\t\treturn MIN;","\\\"\t\t\t\treturn SEC;","s\t\t\t\treturn SEC;",",\t\t\t\treturn COMMA;","\\\u003c\t\t\t\treturn OPENCIRC;","\\\u003e\t\t\t\treturn CLOSECIRC;","\\(\t\t\t\treturn OPENPOINT;","\\)\t\t\t\treturn CLOSEPOINT;","\\{\t\t\t\treturn OPENARR;","\\}\t\t\t\treturn CLOSEARR;","[ \\n\\t]+\t\t/* discard spaces */",".\t\t\t\t/* alert parser of the garbage */","%%"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/postgrespro/pgsphere/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"sscan.l","displayUrl":"https://github.com/postgrespro/pgsphere/blob/9c91983c3406421a2d6d8f0ade2603a6dd7fa1cc/sscan.l?raw=true","headerInfo":{"blobSize":"1.13 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"99bd8ac","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fpostgrespro%2Fpgsphere%2Fblob%2F9c91983c3406421a2d6d8f0ade2603a6dd7fa1cc%2Fsscan.l","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"55","truncatedSloc":"49"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Lex","languageID":199,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/postgrespro/pgsphere/blob/9c91983c3406421a2d6d8f0ade2603a6dd7fa1cc/sscan.l","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/postgrespro/pgsphere/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/postgrespro/pgsphere/raw/9c91983c3406421a2d6d8f0ade2603a6dd7fa1cc/sscan.l","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":null},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"isMarketplaceEnabled":true,"csrf_tokens":{"/postgrespro/pgsphere/branches":{"post":"yAP99d9ByVRTHt3SIN4zN65TZ1Im-tgL-62Y7-w4s1CwUTB_9r1qe_h_hSktWyvwWguPN9NIQs7QIvRGoUDjTQ"},"/repos/preferences":{"post":"P6mdP09O_d__yeD_GSEjOYbxO5KQKlvliFNFWNwCNOxG-X-TBVUwTXUN1eprw5EjeM2EW1IngPGRUZ0tSi6QRQ"}}},"title":"pgsphere/sscan.l at 9c91983c3406421a2d6d8f0ade2603a6dd7fa1cc · postgrespro/pgsphere","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-98e6e9db3609.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0