syntex_syntax 0.4.0

Export of libsyntax for code generation
b0VIM 7.4��=U���xericktErick-Tryzelaar-MBP.local~erickt/projects/rust/rust-syntex/syntex_syntax/src/ext/asm.rsutf-8
3210#"! UtpnnYs#�ad%�n�{XU��M)(%	�
�
�
�
�
�
�
�
r
`
T
9
8
+
"

	
��������zY6������kj�
�
�
L
&
 

�	�	�	�	b	B	$		�������W��\J�qA�����X'����yx+*����:9���F�                    // It's the opposite of '=&' which means that the memory                    // to be both an input and an output at the same time.                    // Use '+' modifier when you want the same expression                    //                    // Expands a read+write operand into two operands.                    panictry!(p.expect(&token::CloseDelim(token::Paren)));                    let out = p.parse_expr();                    panictry!(p.expect(&token::OpenDelim(token::Paren)));                    let span = p.last_span;                    let (constraint, _str_style) = panictry!(p.parse_str());                    }                        panictry!(p.eat(&token::Comma));                    if !outputs.is_empty() {                      p.token != token::ModSep {                      p.token != token::Colon &&                while p.token != token::Eof &&            Outputs => {            }                asm_str_style = Some(style);                asm = s;                };                    None => return DummyResult::expr(sp),                    // let compilation continue                    Some((s, st)) => (s, st),                                                   "inline assembly must be a string literal") {                let (s, style) = match expr_to_string(cx, p.parse_expr(),                }                    return DummyResult::expr(sp);                    cx.span_err(sp, "malformed inline assembly");                    // ending up in Asm state again is an error.                    // If we already have a string with instructions,                if asm_str_style.is_some() {            Asm => {        match state {    'statement: loop {    let mut state = Asm;    let mut dialect = ast::AsmAtt;    let mut alignstack = false;    let mut volatile = false;    let mut clobs = Vec::new();    let mut inputs = Vec::new();    let mut outputs = Vec::new();    let mut asm_str_style = None;    let mut asm = InternedString::new("");    let mut p = cx.new_parser_from_tts(tts);    }        return DummyResult::expr(sp);            &cx.parse_sess.span_diagnostic, "asm", sp, feature_gate::EXPLAIN_ASM);        feature_gate::emit_feature_err(    if !cx.ecfg.enable_asm() {                       -> Box<base::MacResult+'cx> {pub fn expand_asm<'cx>(cx: &'cx mut ExtCtxt, sp: Span, tts: &[ast::TokenTree])const OPTIONS: &'static [&'static str] = &["volatile", "alignstack", "intel"];}    }        }            StateNone => StateNone            Options   => StateNone,            Clobbers  => Options,            Inputs    => Clobbers,            Outputs   => Inputs,            Asm       => Outputs,        match *self {    fn next(&self) -> State {impl State {}    StateNone    Options,    Clobbers,    Inputs,    Outputs,    Asm,enum State {use str::slice_shift_char;use ptr::P;use parse::token;use parse::token::InternedString;use feature_gate;use ext::base::*;use ext::base;use codemap::Span;use codemap;use ast;use self::State::*; */ * Inline assembly support./*// except according to those terms.// option. This file may not be copied, modified, or distributed// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or//// http://rust-lang.org/COPYRIGHT.// file at the top-level directory of this distribution and at// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHTad�3#���lQC932����cK�
�
�
d
1

����xZN=532}    }))        span: sp        }),            expn_id: expn_id,            dialect: dialect,            alignstack: alignstack,            volatile: volatile,            clobbers: clobs,            inputs: inputs,            outputs: outputs,            asm_str_style: asm_str_style.unwrap(),            asm: token::intern_and_get_ident(&asm),        node: ast::ExprInlineAsm(ast::InlineAsm {        id: ast::DUMMY_NODE_ID,    MacEager::expr(P(ast::Expr {    });        },            allow_internal_unstable: false,            span: None,            format: codemap::MacroBang,            name: "asm".to_string(),        callee: codemap::NameAndSpan {        call_site: sp,    let expn_id = cx.codemap().record_expansion(codemap::ExpnInfo {    }        }            }                _ => break                (&token::Eof, _, _) => break 'statement,                }                    state = st;                    panictry!(p.bump());ad�YY��W��fL54�
�
�
|
M

����on! ��T�
�
�
�
h


�	�	�	�	}	L			����[Z���xjQ��I$���oV�����{_UTE��xF����Y                (&token::ModSep, _, st) => {                (&token::Colon, st, _)   |                }                    break 'statement;                    panictry!(p.bump());                (&token::ModSep, _, StateNone) => {                (&token::Colon, StateNone, _)   |            match (&p.token, state.next(), state.next().next()) {            // When encountered, the state must be advanced twice.            // MOD_SEP is a double colon '::' without space in between.        loop {        }            StateNone => ()            }                }                    panictry!(p.eat(&token::Comma));                if p.token == token::Comma {                }                    cx.span_warn(p.last_span, "unrecognized option");                } else {                    dialect = ast::AsmIntel;                } else if option == "intel" {                    alignstack = true;                } else if option == "alignstack" {                    volatile = true;                    // and must not be optimized out along with its outputs.                    // Indicates that the inline assembly has side effects                if option == "volatile" {                let (option, _str_style) = panictry!(p.parse_str());            Options => {            }                }                    clobs.push(s);                    }                        cx.span_warn(p.last_span, "expected a clobber, found an option");                    if OPTIONS.iter().any(|&opt| s == opt) {                    let (s, _str_style) = panictry!(p.parse_str());                    }                        panictry!(p.eat(&token::Comma));                    if !clobs.is_empty() {                      p.token != token::ModSep {                      p.token != token::Colon &&                while p.token != token::Eof &&            Clobbers => {            }                }                    inputs.push((constraint, input));                    panictry!(p.expect(&token::CloseDelim(token::Paren)));                    let input = p.parse_expr();                    panictry!(p.expect(&token::OpenDelim(token::Paren)));                    }                        cx.span_err(p.last_span, "input operand constraint contains '+'");                    } else if constraint.starts_with("+") {                        cx.span_err(p.last_span, "input operand constraint contains '='");                    if constraint.starts_with("=") {                    let (constraint, _str_style) = panictry!(p.parse_str());                    }                        panictry!(p.eat(&token::Comma));                    if !inputs.is_empty() {                      p.token != token::ModSep {                      p.token != token::Colon &&                while p.token != token::Eof &&            Inputs => {            }                }                    outputs.push((output.unwrap_or(constraint), out, is_rw));                    let is_rw = output.is_some();                    };                        }                            None                            cx.span_err(span, "output operand constraint lacks '=' or '+'");                        _ => {                        }                                        "={}", operand)))                            Some(token::intern_and_get_ident(&format!(                        Some(('+', operand)) => {                        Some(('=', _)) => None,ad
5�|5���P6�
�

h
g
5
�����O����TS�
�
,


�	�	P	O			���NM"�����P������?>�|W$����C10������x0��yE����                (&token::ModSep, _, st) => {                (&token::Colon, st, _)   |                }                    break 'statement;                    panictry!(p.bump());                (&token::ModSep, _, StateNone) => {                (&token::Colon, StateNone, _)   |            match (&p.token, state.next(), state.next().next()) {            // When encountered, the state must be advanced twice.            // MOD_SEP is a double colon '::' without space in between.        loop {        }            StateNone => ()            }                }                    panictry!(p.eat(&token::Comma));                if p.token == token::Comma {                }                    cx.span_warn(p.last_span, "unrecognized option");                } else {                    dialect = ast::AsmIntel;                } else if option == "intel" {                    alignstack = true;                } else if option == "alignstack" {                    volatile = true;                    // and must not be optimized out along with its outputs.                    // Indicates that the inline assembly has side effects                if option == "volatile" {                let (option, _str_style) = panictry!(p.parse_str());            Options => {            }                }                    clobs.push(s);                    }                        cx.span_warn(p.last_span, "expected a clobber, found an option");                    if OPTIONS.iter().any(|&opt| s == opt) {                    let (s, _str_style) = panictry!(p.parse_str());                    }                        panictry!(p.eat(&token::Comma));                    if !clobs.is_empty() {                      p.token != token::ModSep {                      p.token != token::Colon &&                while p.token != token::Eof &&            Clobbers => {            }                }                    inputs.push((constraint, input));                    panictry!(p.expect(&token::CloseDelim(token::Paren)));                    let input = p.parse_expr();                    panictry!(p.expect(&token::OpenDelim(token::Paren)));                    }                        cx.span_err(p.last_span, "input operand constraint contains '+'");                    } else if constraint.starts_with("+") {                        cx.span_err(p.last_span, "input operand constraint contains '='");                    if constraint.starts_with("=") {                    let (constraint, _str_style) = panictry!(p.parse_str());                    }                        panictry!(p.eat(&token::Comma));                    if !inputs.is_empty() {                      p.token != token::ModSep {                      p.token != token::Colon &&                while p.token != token::Eof &&            Inputs => {            }                }                    outputs.push((output.unwrap_or(constraint), out, is_rw));                    let is_rw = output.is_some();                    };                        }                            None                            cx.span_err(span, "output operand constraint lacks '=' or '+'");                        _ => {                        }                                        "={}", operand)))                            Some(token::intern_and_get_ident(&format!(                                            let output = match sliconstraint.slice_                                     let output = match slice_shift_char(&constraint) {                    // a register is clobbered early.)                    // cannot be shared with any other operand (usually when