| スタイルガイド |
![]() |
![]() |
![]() |
文法はそのうちに、特に多くのセマンティックアクションが様々な点に接続されるようになると、理解するのが非常に困難なものになりがちである。
読みやすさを維持するために、 Spirit コードに一貫性と美しさを与える以下のようなコーディングスタイルガイドが推奨されている:このコーディングスタイルは、 ANTLR/PCCTS スタイル( Terrence Parr )および Boost コーディングガイドライン ( David Abrahams と Nathan Myers )に手を加え、拡張したものである。 これは Joel de Guzman 、 Chris Uzdavinis および Hartmu Kaiser の合作である。
program = program_heading [heading_action] >> block [block_action] >> '.' | another_sequence >> etc ;
program_heading = as_lower_d["program"] >> identifier >> '(' >> file_identifier >> *( ',' >> file_identifier ) >> ')' >> ';' ;
identifier = nocase [ lexeme [ alpha >> *(alnum | '_') [id_action] ] ] ;
block = *( label_declaration_part | constant_definition_part | type_definition_part | variable_declaration_part | procedure_and_function_declaration_part ) >> statement_part ;
![]() |
![]() |
![]() |
Copyright © 2001-2003 Joel de Guzman
Copyright © 2001-2002 Hartmut Kaiser
Copyright © 2001-2002 Chris Uzdavinis
Permission to copy, use, modify, sell and distribute this document
is granted provided this copyright notice appears in all copies. This document
is provided "as is" without express or implied warranty, and with
no claim as to its suitability for any purpose.
Japanese Translation Copyright © 2003-2004 Kent.N
オリジナルの、及びこの著作権表示が全ての複製の中に現れる限り、この文書の複製、利用、変更、販売そして配布を認める。このドキュメントは「あるがまま」に提供されており、いかなる明示的、暗黙的保証も行わない。また、いかなる目的に対しても、その利用が適していることを関知しない。
このドキュメントの対象: Boost Version 1.30.0
最新版ドキュメント(英語)