# Syntax of tokens in the Wolfram Language

**URL:** <https://community.wolfram.com/t/syntax-of-tokens-in-the-wolfram-language/18650>\
**Category:** Questions\
**Created:** [August 8, 2021, 9:03pm UTC](https://community.wolfram.com/t/syntax-of-tokens-in-the-wolfram-language/18650 "2021-08-08T21:03:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tverhoeff](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/tverhoeff/32/7969_2.png) [@tverhoeff](https://community.wolfram.com/u/tverhoeff)\
**Post date:** [August 8, 2021, 9:03pm UTC](https://community.wolfram.com/t/syntax-of-tokens-in-the-wolfram-language/18650/1 "2021-08-08T21:03:39Z")

</div>

Where can I find the exact syntax (grammar) for the Wolfram Language? I know it is parsed down to symbols, strings, numbers, operators, and comments – see e.g. the section on Syntax of

> **[Textual Input and Output—Wolfram Documentation](https://reference.wolfram.com/language/tutorial/TextualInputAndOutput.html)**
>
> The Wolfram Language allows you to output expressions in many different ways. Output forms provide textual representations of Wolfram Language expressions. In some cases these textual representations are also suitable for input to the Wolfram...

But what are the exact rules for this?

---

<div class="post-metadata">

**Author:** ![samcarrettie](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/samcarrettie/32/29668_2.png) [@samcarrettie](https://community.wolfram.com/u/samcarrettie)\
**Post date:** [August 9, 2021, 9:58pm UTC](https://community.wolfram.com/t/syntax-of-tokens-in-the-wolfram-language/18650/2 "2021-08-09T21:58:19Z")

</div>

Could you explain a bit more what you mean? I have a suspicion that what you are asking might be a proprietary information.

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [August 9, 2021, 11:25pm UTC](https://community.wolfram.com/t/syntax-of-tokens-in-the-wolfram-language/18650/3 "2021-08-09T23:25:44Z")

</div>

If you are interested in parsing WL expressions take a look at the [open source parser](https://github.com/WolframResearch/codeparser) from Wolfram Research.
