annotate .hgsub @ 20624:7c0e10f035bd

Extend parser to accept binary constants that begin with '0b' or '0B'. * NEWS: Announce change: * lex.ll: Define NUMBIN to be 0[bB] followed by 0,1, or '_'. Define NUMBER to be NUMREAL|NUMHEX|NUMBIN. *lex.ll (looks_like_bin): New function to detect 0[bB] prefix. *lex.ll (handle_numbe): Call looks_like_bin() and if found then convert binary string to double. * parser.tst: Add tests for new behavior.
author Rik <rik@octave.org>
date Fri, 09 Oct 2015 18:52:58 -0700
parents 44f30dcd87e0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15889
7f4082b00a99 Replace gnulib subrepo with gnulib-hg
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 13883
diff changeset
1 gnulib-hg = gnulib-hg