Skip to content

Commit

Permalink
parse false and other numbers
Browse files Browse the repository at this point in the history
::

    $ ./otl-shell
    Erlang/OTP 18 [erts-7.0] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]

    otl shell (Ctrl+g and then q to quit, Ctrl+g for Job Control Mode)

    >>> false true 1
    1
    >>> 92
    92
    >>> 42
    42
    >>>
    User switch command
     --> q
  • Loading branch information
marianoguerra committed Mar 21, 2016
1 parent eb498bf commit f0f9d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/otl_lexer.xrl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

Definitions.

Number = 1
Bool = true
Number = [0-9]
Bool = (true|false)

Endls = (\s|\t)*(\r?\n)
Whites = \s+
Expand Down

0 comments on commit f0f9d2e

Please sign in to comment.