Skip to content
This repository was archived by the owner on Jan 9, 2021. It is now read-only.

Commit

Permalink
Dot token was added.
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Oct 29, 2016
1 parent 96926fa commit e94f87a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions yepc/core/lex.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class YEPCLexer:
'WHILE_KW', 'DEFAULT_KW', 'RETURN_KW', 'BREAK_KW', 'RECORD_KW',
'ID', 'FAKE_ID',
'NUMBER', 'CHARCONST', 'REL_OP', 'MATH_OP', 'EXP_OP', 'REAL',
'WHITE_SPACE', 'COMMENTS',
'COMMENTS',
'TRUE', 'FALSE',
'SEMICOLON', 'COLON',
'SEMICOLON', 'COLON', 'DOT',
'BR_OPEN', 'BR_CLOSE', 'PR_OPEN', 'PR_CLOSE', 'BK_OPEN', 'BK_CLOSE',
)

Expand All @@ -38,15 +38,16 @@ class YEPCLexer:
t_RETURN_KW = r'return'
t_BREAK_KW = r'break'

# boolean
# Boolean
t_TRUE = r'True'
t_FALSE = r'False'

# smicolon
# Punctuation
t_SEMICOLON = r';'
t_COLON = r','
t_DOT = r'\.'

# pranthesis and barcket
# Pranthesis and Barcket
t_BR_OPEN = r'\{'
t_BR_CLOSE = r'\}'
t_PR_OPEN = r'\('
Expand Down

0 comments on commit e94f87a

Please sign in to comment.