Prioritised matches are done!

Take another look at:

https://bitbucket.org/william_ml_leslie/match/src/tip/aurochs/test/test_tokeniser.py?at=default

I puzzled for ages as to why parsing floats would fail.  Then I
realised that I'd defined integers first, so it would successfully
parse and emit the integer, and then not know what to do with the ".".
 Defining floats first fixed my problem (:

The other test in this directory is descriptive too; it parses
comments, indentation, and a little regex identifier.

Here's how it works:

https://bitbucket.org/william_ml_leslie/match/src/29282db09e2fca0e7d4208656b820b5e48a734be/aurochs/dfa_transform.py?at=default#cl-16

-- 
William Leslie

Notice:
Likely much of this email is, by the nature of copyright, covered
under copyright law.  You absolutely may reproduce any part of it in
accordance with the copyright law of the nation you are reading this
in.  Any attempt to deny you those rights would be illegal without
prior contractual agreement.
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to