--- title: "Little Languages" type: "article" slug: "little-languages-3" url: "http://localhost/article/little-languages-3/" markdown_url: "http://localhost/article/little-languages-3.md" published_at: "2026-01-21T14:29:15+00:00" modified_at: "2026-01-21T14:29:15+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "The first part of any translator or compiler, is the lexical analyser. A lexical analyser takes the \"words\" of a program and breaks them up into parts that understands. It separates the operators ( +, =, *, etc) , the reserved words (FORWARD, RIGHT, LEFT, etc) , and variables. It does not check to make…" category: - name: "CATS Newsletter" slug: "cats-newsletter" taxonomy: "category" url: "http://localhost/category/periodicals/cats-newsletter/" post_tag: - name: "QL" slug: "ql" taxonomy: "post_tag" url: "http://localhost/tag/ql/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Sinclair QL" slug: "sinclair-ql" taxonomy: "model" url: "http://localhost/model/sinclair-ql/" indiv: - name: "Tim Swenson" slug: "tim-swenson" taxonomy: "indiv" url: "http://localhost/indiv/tim-swenson/" publication_r: id: 35941 title: "CATS Newsletter" type: "periodical" url: "http://localhost/periodical/cats-newsletter/" authors_r: - name: "Tim Swenson" slug: "tim-swenson" taxonomy: "indiv" url: "http://localhost/indiv/tim-swenson/" volume: "8" issue: "9" issues_articles: - id: 38921 title: "CATS v8 n9" type: "issue" url: "http://localhost/issue/cats-v8-n9/" pages: "6-8" pubdate: "February 1991" archive_link: false --- # Little Languages The first part of any translator or compiler, is the lexical analyser. A lexical analyser takes the “words” of a program and breaks them up into parts that understands. It separates the operators ( +, =, *, etc) , the reserved words (FORWARD, RIGHT, LEFT, etc) , and variables. It does not check to make sure the program makes any sense. A11 operators and reserved words are broken down to “tokens”. The word FORWARD is translated to just F.