Skip to content

Instantly share code, notes, and snippets.

@tangentstorm
Created February 27, 2013 19:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tangentstorm/5050941 to your computer and use it in GitHub Desktop.
Save tangentstorm/5050941 to your computer and use it in GitHub Desktop.
Lexer DFA for object pascal
[[a[nd
|rray
|s
|sm]
|b[egin]
|c[ase
|lass
|onst[
|ructor]]
|d[e[structor
|fault]
|i[sp[interface
|pose]
|v]
|o[
|wnto]]
|e[lse
|nd
|x[cept
|it
|ports]]
|f[alse
|i[le
|nal[ization
|ly]]
|or
|unction]
|goto
|i[f
|mplementation
|n[
|herited
|itialization
|line
|terface]
|s]
|l[abel
|ibrary]
|mod
|n[ew
|il
|ot]
|o[bject
|f
|n
|perator
|r
|ut]
|p[acked
|ro[cedure
|gram
|perty]]
|r[aise
|e[cord
|peat
|sourcestring]]
|s[e[lf
|et]
|h[l
|r]
|tring]
|t[h[en
|readvar]
|o
|r[ue
|y]
|ype]
|u[n[it
|til]
|ses]
|var
|w[hile
|ith]
|xor]
(a..z)+ -> iden]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment