Changeset 3093 for proto/Compiler


Ignore:
Timestamp:
Apr 29, 2013, 6:56:17 AM (6 years ago)
Author:
cameron
Message:

Use template type for string base; remove Bytedata dependency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/pablo.py

    r3091 r3093  
    1919error_routine = 'raise_assert'
    2020experimentalMode=False
     21pablo_char_type = 'char'
    2122
    2223
     
    394395      return c
    395396    elif is_BuiltIn_Call(callnode,'match', 3):
    396         ast.dump(callnode)
    397397        assert isinstance(callnode.args[1], ast.Str)
    398398        string_to_match = callnode.args[1].s
    399399        match_len = len(string_to_match)
    400400        match_var = callnode.args[2]
    401         expr = mkast.call('pablo_blk_match', [callnode.args[0], callnode.args[1], match_var, ast.Num(match_len)])
     401        expr = mkast.call('pablo_blk_match<%s>' % pablo_char_type, [callnode.args[0], callnode.args[1], match_var, ast.Num(match_len)])
    402402        return expr
    403403    else:
Note: See TracChangeset for help on using the changeset viewer.