Pegjs
The Pegjs icon represents a parser generator tool called Pegjs.
Exports at 20 × 24 px
Code
Pegjs in your framework
In any framework. Customize it above, and the code follows.
export const PegjsIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="24" viewBox="0 0 417 512" {...props}>
<path fill="currentColor" d="M56.532.019L272.364 224.72l-53.876-15.077c9.22-39.022-25.743-72.052-61.764-63.815c-2.96.706-4.481.082-6.239-2.284L50.311 9.255C47.572 5.536 47.741-.377 56.532.02m86.765 151.665L40.204 13.096c-5.153-6.792-9.135-6.515-13.234.745L1.548 58.733c-1.972 3.432-2.047 6.464-.299 9.992l133.19 269.402c3.13-3.682 9.374-7.21 5.86-13.037L13.123 67.587c-.735-1.496-1.414-3.842-.76-5.068l16.464-29.5L171.454 297.68c1.555 3.077 3.221 4.752 6.914 5.485c12.854 2.552 19.733 16.335 13.612 27.121c-1.695 2.987-1.436 4.951-.019 7.738l64.877 128.116c2.755 5.455 5.785 10.536 12.455 12.37c-20.079 21.023-39.296 25.7-44.761 17.609l-64.073-129.873l-8.79 6.992l66.177 133.967c3.747 9.097 29.944 3.929 40.282-4.53c25.639-22.865 45.222-30.293 39.89-49.45c-3.908-21.49-12.841-41.09-22.6-60.371c-3.722-5.178-17.41.701-33.619-31.547c-7.949-15.816-8.289-25.28-2.123-33.512c.786-1.04.533-3.555-.16-4.92l-37.167-72.989c-3.826-7.809-8.65-11.822-17.385-13.286c-58.793-10.191-72.214-58.559-41.667-84.916M371.28 428.02c12.161-9.914 24.43-19.7 36.445-29.788c11.421-9.587 11.85-20.001 1.684-30.596c-40.07-42.297-80.178-84.64-100.098-102.93c-11.31 11.088-17.04 12.527-27.869.905c-8.105-9.522-32.941-12.25-47.27-16.73c12.357 13.42 29.801 31.995 48.601 51.943c2.328 2.195 13.552.849 18.393 3.298c16.024 7.933 27.076 20.9 34.26 37.12c4.778 11.451-4.465 9.424 3.09 17.314c15.253 15.248 29.93 31.192 50.28 40.963l-31.927 26.147c-2.627 2.213-4.948 2.798-7.616.828c-10.818-7.986-21.842-15.73-32.25-24.224c-18.043-14.635-7.577-24.596-20.238-41.31c-12.867-16.983-25.999-26.504-40.446-29.13c-7.48-1.19-11.373 3.233-9.532 11.225c14.416-3.43 31.81 10.545 41.414 25.91c9.364 14.982 3.746 23.41 7.385 26.77c19.06 20.573 32.765 31.668 52.925 42.256c7.975 4.68 13.38-2.27 22.77-9.97M141.045 163.927c-16.491 22.212-.946 54.885 33.175 62.95l104.185 27.038c4.566 1.02 7.273 6.55 12.032 10.575c4.353 3.658 10.845 1.283 12.425-4.247c2.736-9.574-1.722-18.786-11.063-21.855l-82.502-24.078c1.146-3.533 2.436-6.644 3.16-9.882c8.423-43.986-49.314-70.07-71.412-40.5m16.385 13.936c8-15.649 38.05-2.741 34.648 22.591c-1.473 7.287-3.753 8.82-10.549 5.955c-18.823-7.69-30.755-14.983-24.099-28.546m-3.796 184.664l29.86-32.25c11.977-10.78-6.233-28.362-17.595-16.916l-29.82 33.65c-10.597 11.989 6.957 27.506 17.555 15.516"/>
</svg>
);File Icons
More like it
Icons that share its tags, in the same style.
Search File Icons
Skip the copy and paste. With Pro, your AI agent finds and installs any File Icons icon from a prompt.
Get ProTags
Browse by tag
Pegjs is tagged development, code, compiler and 1 more. Related tags follow; each opens its icons from every library.
Pricing
File Icons MCP, with Pro
Ask for Pegjs or any of 930 File Icons icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What the Pegjs icon means and where it's used, then how to install, style, label and license it.
The Pegjs icon represents a parser generator tool called Pegjs. Pegjs is a popular tool for generating parsers from grammar definitions. The icon features a stylized representation of a parser or generator, often depicted with a distinctive shape or symbol.
The Pegjs icon appears in various contexts, including software development, coding, and compiler design. For example, users may see the Pegjs icon on a developer's website or social media profile, indicating that they work with parser generators or compiler design. The icon may also be used in coding tutorials or guides to help users learn about parser generators and compiler design.
From a UX perspective, the Pegjs icon communicates a sense of code generation and compiler design. When users see the icon, they understand that they are working with a tool that helps generate parsers or compilers. The icon's design helps to convey this message in a clear and concise way, making it easy for users to navigate and understand the functionality of the tool.
Pegjs is one of 930 icons in File Icons, made by John Gardner and released under ISC. It is drawn on a 417 × 512 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds PegjsIcon to components/icons/file-icons-pegjs.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed PegjsIcon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the Pegjs icon, or any of 930 File Icons icons, and install it from a prompt.
It's drawn in currentColor, so it takes the text color wherever you use it: a class like text-primary recolors it. To bake a color in, set one in Customize before you copy.
Set width and height on the component, or a class like size-6. It's drawn on a 417 × 512 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It follows the text color, so with text-foreground (or any theme token) it changes with your light and dark themes. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="Pegjs", so screen readers say what it does.
Yes. PegjsIcon passes every SVG prop to the svg element, so <PegjsIcon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
Yes. ISC allows commercial use; keep the license notice when you ship the icons' source files. The full terms are in the license, linked on this page.
No visible credit is required: ISC only asks that you keep the license notice if you ship the icons' source files. Icons installed with the shadcn CLI already start with a comment naming File Icons, John Gardner and the license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
Its tags are development, code, compiler and generator. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Pegjs in another set.
4.9 out of 5 from 150+ developers
Install Pegjs from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro