»  Home »  Resources & support »  Users Group meetings »  1999 UK Stata Users Group meeting »  Low-level parsing

Low-level parsing

  • syntax replaces parse for high-level parsing
  • tokenize replaces parse, parse() for low-level parsing

Program starts
program define mycmd6
    version 6.0
    syntax [varlist] [if]
    tokenize "`varlist'"
    ...
User types
mycmd6 mpg wei length
syntax fills in `varlist' with
mpg weight length
tokenize fills in positional macros
`1' `2' `3'
mpg weight length

Stata

Shop

Support

Company


The Stata Blog: Not Elsewhere Classified Find us on Facebook Follow us on Twitter LinkedIn YouTube Instagram
© Copyright 1996–2022 StataCorp LLC   •   Terms of use   •   Privacy   •   Contact us